---
title: "Create a new token for a company"
method: POST
path: "/v1/companies/{company_id}/create-token"
tags: ["Partner Configuration", "Company Tokens"]
---

# Create a new token for a company

`POST /v1/companies/{company_id}/create-token`

## Request

- Base URL: `https://gateway.remote.com`
- URL: `https://gateway.remote.com/v1/companies/{company_id}/create-token`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/auth/oauth2/token`

Creates new tokens for a given company, on behalf of the company owner.

Only available to integrations that Remote has allowed to act on behalf of users.
Other integrations get a 403.

## Authentication

This endpoint requires the following token type:

- **Client credentials access token** (`OAuth2ClientCredentials`) — obtained through the Client Credentials flow or the Refresh Token flow. See [Authentication for partners](https://developer.remote.com/docs/authentication-for-partners).

## Path parameters

- `company_id` string, required

## Query parameters

- `scope` string

## Response `200`

Success

- CompanyTokenResponse: OAuth2 tokens returned after a company authorizes access. Use the access token in the Authorization header for subsequent API calls. Use the refresh token to obtain a new access token when the current one expires.
  - `access_token` string, required: The OAuth2 access token (JWT). Include this in the `Authorization: Bearer <token>` header for API requests.
  - `expires_in` integer, required: The number of seconds until the access token expires.
  - `refresh_token` string, required: The refresh token used to obtain a new access token when the current one expires.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity

## Changes

- **2026-12-01** `830df2c44d2d`: 1 info
  - the `message` response's property pattern `Not Found` was removed for the status `404`
- **2026-10-12** `b22ba6ef9539`: 1 info
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/remote-com/apis/remote-api/changes/v1/companies/:company_id/create-token/post.md)

---

[API](https://skmtc.dev/remote-com/apis/remote-api.md) - [All operations](https://skmtc.dev/remote-com/apis/remote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/remote-com/apis/remote-api/revisions/777f36f27c65?raw)
