---
title: "Request an OAuth bearer token"
method: POST
path: "/4.0/oauth/token"
tags: ["Authentication"]
---

# Request an OAuth bearer token

`POST /4.0/oauth/token`

## Request

- Base URL: `https://api.socialtables.com`
- URL: `https://api.socialtables.com/4.0/oauth/token`
- Auth: none declared

## Headers

- `Content-Type` string
- `Accept` string

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

- object
  - `client_id` string, required: OAuth client ID
  - `client_secret` string, required: OAuth client secret - required for password and client_credentials flows
  - `grant_type` 'authorization_code' | 'password' | 'client_credentials' | 'refresh_token', required: OAuth grant type
  - `code` string: Authorization code for authorization_code grants
  - `refresh_token` string: Refresh token for refresh_token grants
  - `username` string: Username (email) for password grants
  - `password` string: Password for password grants

## Response `200`

success

---

[API](https://skmtc.dev/socialtables/apis/social-tables-api-gateway.md) - [All operations](https://skmtc.dev/socialtables/apis/social-tables-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/socialtables/apis/social-tables-api-gateway/revisions/5693d914a4b5?raw)
