---
title: "Exchange credentials for an access token"
method: POST
path: "/oauth/token"
tags: ["token"]
---

# Exchange credentials for an access token

`POST /oauth/token`

## Request

- Base URL: `https://your.domain.com`
- URL: `https://your.domain.com/oauth/token`
- Auth: none declared

SmartRecruiters will call this endpoint to exchange the credentials received from Partner for an access token.

## Request body `application/x-www-form-urlencoded`

- TokenInput
  - `grant_type` 'client_credentials', required
  - `client_id` string, required
  - `client_secret` string, required

## Response `200`

Access token

- AccessToken
  - `access_token` string, required
  - `expires_in` integer, required: Indicates for how many seconds the token will be valid from the moment it was generated.

## Other responses

- `400`: Error Response https://tools.ietf.org/html/rfc6749#section-5.2

---

[API](https://skmtc.dev/smartrecruiters/apis/assessment-partner-application.md) - [All operations](https://skmtc.dev/smartrecruiters/apis/assessment-partner-application/llms.txt) - [OpenAPI document](https://skmtc.dev/smartrecruiters/apis/assessment-partner-application/revisions/3752a136f6db?raw)
