---
title: "Get an access token"
method: POST
path: "/v2/oauth/token"
tags: ["Authorization"]
---

# Get an access token

`POST /v2/oauth/token`

## Request

- Base URL: `https://api.sandbox.payall.com`
- URL: `https://api.sandbox.payall.com/v2/oauth/token`
- Auth: HTTP basic

This endpoint is used to get an access token.

## Response `200`

OK

- object
  - `access_token` string
  - `token_type` string
  - `expires_in` integer: The lifetime in seconds of the access token

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/payall/apis/payall-m2m-authentication-api.md) - [All operations](https://skmtc.dev/payall/apis/payall-m2m-authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/payall/apis/payall-m2m-authentication-api/revisions/5f561eccd6ce?raw)
