---
title: "Get basic authentication access token"
method: POST
path: "/v2/s2s/access-token"
tags: ["Authentication"]
---

# Get basic authentication access token

`POST /v2/s2s/access-token`

Generate an access token for use with basic authentication. <br/><br/> For more information, refer to [Endpoints that require an account-specific token](https://developers.pismo.io/pismo-docs/reference/endpoints-that-require-an-account-specific-token) and [Endpoints that require an external ID-specific token](https://developers.pismo.io/pismo-docs/reference/endpoints-that-require-an-external-id-token).

## Request body

- object
  - `server_key` string, required — Server credential ID
  - `server_secret` string, required — Server credential secret
  - `account_id` number — Account ID for [endpoints that require an account token](https://developers.pismo.io/pismo-docs/reference/endpoints-that-require-an-account-specific-token)

## Response `201`

Created

- object
  - `tenant` string — Tenant ID
  - `server_key` string — Server credential ID
  - `program_ids` integer[] — Array of program IDs for which the server is allowed to make authenticated requests
  - `account_id` number — Account ID
  - `external_account_id` string — Account ID for [endpoints that require an external account token](https://developers.pismo.io/pismo-docs/reference/endpoints-that-require-an-external-id-token). Used in place of the Pismo account ID.
  - `roles` string[] — Permissions roles associated with the generated access token
  - `token` string — Pismo access token used to make authenticated requests
  - `refresh` string — JWT used to refresh an expired Pismo access token

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/pismo/apis/platform-authentication.md) · [All operations](https://skmtc.net/pismo/apis/platform-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pismo/platform-authentication/revisions/935b62e16de4/schema)
