---
title: "ACCESS_TOKEN - Como gerar o access_token"
method: POST
path: "/api/authorizations/access_token"
tags: ["AUTORIZAÇÃO"]
---

# ACCESS_TOKEN - Como gerar o access_token

`POST /api/authorizations/access_token`

## Request

- Base URL: `https://api.intermediador.sandbox.yapay.com.br`
- URL: `https://api.intermediador.sandbox.yapay.com.br/api/authorizations/access_token`
- Auth: none declared

API para criação de ACCESS TOKEN

## Request body

- object
  - `code` string
  - `consumer_key` string
  - `consumer_secret` string
  - `type_response` string

## Response `200`

RETURN ACESS_TOKEN

- object
  - `data_response` object
    - `authorization` object
      - `access_token` string
      - `access_token_expiration` string
      - `refresh_token` string
      - `refresh_token_expiration` string
  - `message_response` object
    - `message` string

---

[API](https://skmtc.dev/vindi/apis/001-vindi-pagamentos-agost.md) - [All operations](https://skmtc.dev/vindi/apis/001-vindi-pagamentos-agost/llms.txt) - [OpenAPI document](https://skmtc.dev/vindi/apis/001-vindi-pagamentos-agost/revisions/c8b3c57301e8?raw)
