---
title: "POST /v0.1/apps/{owner_name}/{app_name}/api_tokens"
method: POST
path: "/v0.1/apps/{owner_name}/{app_name}/api_tokens"
tags: ["account"]
---

# POST /v0.1/apps/{owner_name}/{app_name}/api_tokens

`POST /v0.1/apps/{owner_name}/{app_name}/api_tokens`

## Request

- Base URL: `https://api.appcenter.ms`
- URL: `https://api.appcenter.ms/v0.1/apps/{owner_name}/{app_name}/api_tokens`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/appcenter/apis/app-center-client/docs/v0.1/apps/:owner_name/:app_name/api_tokens/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new App API token

## Path parameters

- `owner_name` string, required
- `app_name` string, required

## Request body

- object
  - `description` string: The description of the token
  - `scope` string[]: The scope for this token.

## Response `201`

Success

- object
  - `id` string, required: The unique id (UUID) of the api token
  - `api_token` string, required: The api token generated will not be accessible again
  - `description` string: The description of the token
  - `scope` string[]: The scope for this token.
  - `created_at` string, required: The creation time

## Other responses

- `400`: Error
- `401`: Unauthorized

---

[API](https://skmtc.dev/appcenter/apis/app-center-client.md) - [All operations](https://skmtc.dev/appcenter/apis/app-center-client/llms.txt) - [OpenAPI document](https://skmtc.dev/appcenter/apis/app-center-client/revisions/4e9226ab8f35?raw)
