---
search:
  tags:
    - Authentication
    - POST
seo:
  description: >-
    Exchange credentials for a JWT access token. Reference for the POST
    /auth/access-token endpoint in the Streamkap REST API.
sidebar:
  label: Access Token
  badge: POST
title: Access Token
type: openapi-operation
---
Exchange credentials for a JWT access token.

Accepts either:
- `client_id` + `secret` (classic API token flow)
- `project_key`: a Streamkap Project Key credential file (raw JSON or base64-encoded)

For `project_key` input, the API credentials are extracted from the bundle and used
to issue the JWT. Kafka-only Project Keys (no API credentials) cannot be exchanged
for a JWT.

`POST /auth/access-token`
