---
title: "Create OAuth token"
method: POST
path: "/v1/oauth/token"
---

# Create OAuth token

`POST /v1/oauth/token`

Exchange OAuth credentials for an access token

## Request body

- CreateOAuthTokenOpts — Request object for creating an OAuth token
  - `grant_type` 'client_credentials', required
  - `client_id` string, required
  - `client_secret` string, required
  - `scope` string — Optional space-separated scopes for the access token. Defaults to `*`.

## Response `200`

token created

- CreateOAuthTokenResponse — Response object for creating an OAuth token
  - `access_token` string, required
  - `token_type` string, required
  - `expires_in` integer, required

## Other responses

- `429` — too many requests

---

[API](https://skmtc.net/pipedream/apis/pipedream-rest-api.md) · [All operations](https://skmtc.net/pipedream/apis/pipedream-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pipedream/pipedream-rest-api/revisions/c25dbf225c49/schema)
