---
title: "Oauth Token"
method: POST
path: "/oauth/token"
tags: ["oauth"]
---

# Oauth Token

`POST /oauth/token`

## Request

- Base URL: `https://api.forgeorbital.com`
- URL: `https://api.forgeorbital.com/oauth/token`
- Auth: none required

OAuth2 client-credentials grant (M2M).

Accepts ``application/x-www-form-urlencoded`` or JSON body with
``grant_type=client_credentials``, ``client_id``, ``client_secret``.

## Request body

- object: Executable body contract shared by JSON and form-encoded clients.
  - `grant_type` 'client_credentials', required
  - `client_id` string, required
  - `client_secret` string, password, required
  - `scope` string, nullable

## Response `200`

Successful Response

- OAuthTokenResponse
  - `access_token` string, required
  - `token_type` 'Bearer', required
  - `expires_in` integer, required
  - `scope` 'decision_records' | 'decision_records.write' | 'decision_records decision_records.write', required
  - `allowed_agent_control_profile_ids` string[], required
  - `org_id` string, required
  - `token_environment` 'sandbox' | 'production', required
  - `audience` string, required

## Other responses

- `default`: Stable, sanitized product API error.

---

[API](https://skmtc.dev/forgeorbital/apis/forge-decision-records-api.md) · [All operations](https://skmtc.dev/forgeorbital/apis/forge-decision-records-api/llms.txt) · [OpenAPI document](https://skmtc.dev/forgeorbital/apis/forge-decision-records-api/revisions/4410e0e5c86a?raw)
