---
title: "Oauth2 token endpoint"
method: POST
path: "/v1/oauth2/token"
tags: ["OAuth2"]
---

# Oauth2 token endpoint

`POST /v1/oauth2/token`

[OAuth2 Token](https://tools.ietf.org/html/rfc6749#section-3.2) endpoint. Please note that this authorization url is configured in the developer portal. The required parameters depend on the grant type requested:

Authorization Code (Media Library/Planned Content)

*   grant\_type: authorization\_code
*   client\_id
*   client\_secret
*   code
*   redirect\_uri

Refresh Token (Media Library/Planned Content)

*   grant\_type: refresh\_token
*   client\_id
*   client\_secret
*   refresh\_token

Client Credentials (CRM integration)

*   grant\_type: client\_credentials
*   client\_id
*   client\_secret
*   scope: CRM-Instance-URL provided by the customer

## Response `200`

successful operation

- TokenResponse
  - `access_token` string, required
  - `token_type` string, required
  - `expires_in` integer
  - `refresh_token` string

## Other responses

- `400` — Bad request.
- `500` — Unexpected error.

---

[API](https://skmtc.dev/hootsuite/apis/hootsuite-apps-api.md) · [All operations](https://skmtc.dev/hootsuite/apis/hootsuite-apps-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hootsuite/hootsuite-apps-api/revisions/015e2672e012/schema)
