---
title: "Generate access token"
method: POST
path: "/as/token.oauth2"
---

# Generate access token

`POST /as/token.oauth2`

Get an access token to authenticate API requests. If you're unfamiliar with the authentication process, check out the [authentication guide](/docs/developer-integration/execute-customer-journeys/authenticate) for more details.

## Response `200`

Successfully retrieved access token.

- object
  - `access_token` string — The access token used for authentication.
  - `expires_in` integer — Token expiration time in seconds.
  - `token_type` string — The type of token, usually 'Bearer'.

## Other responses

- `400` — Invalid request. Check your credentials.
- `401` — Unauthorized request. Invalid username or password.

---

[API](https://skmtc.net/gbgplc/apis/gbg-go-api-reference.md) · [All operations](https://skmtc.net/gbgplc/apis/gbg-go-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gbgplc/gbg-go-api-reference/versions/71fc8231d3fb/schema)
