---
title: "Create Access Token"
method: POST
path: "/v4/oauth/access-token"
tags: ["OAuth"]
---

# Create Access Token

`POST /v4/oauth/access-token`

To create an access token via the /oauth/access-token API, an API user may choose any one of the grant types it supports: Authorization Code Grant, Client Credential Grant, Password Credential Grant or Refresh Token Grant. Provide "?mode=details" in query string to receive response identical to GET /v4/oauth/access-token/details

## Request body

- CreatedAccessToken
  - `grant_type` 'password' | 'client_credentials' | 'refresh_token' | 'authorization_code', required — authorization_code, client_credentials, password or refresh_token
  - `client_id` string, required — Client ID
  - `client_secret` string, required — Client Secret Key
  - `username` string, nullable — User name
  - `phonenumber` string, nullable — Phone number
  - `scope` string, nullable — account-owner, extension-user and/or methods:ALL, separated by space
  - `redirect_uri` string, nullable — The redirect URI where user enters authentication information
  - `code` string, nullable — Authorization Code created via the /oauth/authorization API
  - `refresh_token` string, nullable — Refresh token

## Response `201`

Created

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Validation failed
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/phone/phoenix-api-by-phone-com/revisions/b6c7ddb3e281/schema)
