---
title: "Generate Access Token"
method: POST
path: "/token"
tags: ["Authentication"]
---

# Generate Access Token

`POST /token`

## Request

- Base URL: `https://openapi.flowaccount.com/v1`
- URL: `https://openapi.flowaccount.com/v1/token`
- Auth: none declared. Required headers: `Content-Type`
- TypeScript: <https://skmtc.dev/flowaccount/apis/flowaccount-open-api/docs/token/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `Content-Type` string, required

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

- object
  - `grant_type` string
  - `scope` string
  - `client_id` string
  - `client_secret` string
  - `guid` string

## Response `200`

200 response

- AuthenResponse
  - `access_token` string
  - `expires_in` integer
  - `token_type` string
  - `refresh_token` string
  - `error` string

## Other responses

- `401`: 401 response
- `500`: 500 response

---

[API](https://skmtc.dev/flowaccount/apis/flowaccount-open-api.md) - [All operations](https://skmtc.dev/flowaccount/apis/flowaccount-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowaccount/apis/flowaccount-open-api/revisions/4ba3d3ca5bd5?raw)
