---
title: "Get token from AAD"
method: POST
path: "/auth/client_credentials"
tags: ["public"]
---

# Get token from AAD

`POST /auth/client_credentials`

Returns a token direct from Azure AD using Client Credentials.

## Request body

- object
  - `client_id` string, required
  - `client_secret` string, required

## Response `200`

OK

- object
  - `token_type` string
  - `expires_in` integer
  - `ext_expires_in` integer
  - `access_token` string

## Other responses

- `400` — Bad request - Request missing client_id and/or client_secret.
- `401` — Unauthorised - either you have not provided any credentials, or your credentials are not recognised.
- `403` — Forbidden - you have been authorised, but you are not allowed to access this resource.
- `429` — You have sent too many requests in a given amount of time. Please back-off for the time in the Retry-After header (in seconds) and try again.

---

[API](https://skmtc.net/uk-hydrographic-office/apis/s100-exchange-set-service-api.md) · [All operations](https://skmtc.net/uk-hydrographic-office/apis/s100-exchange-set-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uk-hydrographic-office/s100-exchange-set-service-api/revisions/4f2e5a0c4400/schema)
