---
title: "Exchange for a service token"
method: POST
path: "/auth/exchange/token"
tags: ["Auth"]
---

# Exchange for a service token

`POST /auth/exchange/token`

Exchange the caller's token for a service token scoped to an AI application.

## Query parameters

- `app_id` integer, required — ID of the AI application to scope the token to.

## Response `200`

Successful Response

- string

## Other responses

- `401` — Missing or invalid authentication.
- `404` — No application exists with the given id.
- `422` — Validation Error

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/revisions/b53e89b98c2b/schema)
