---
title: "Generate an app access token"
method: POST
path: "/app/accessTokens"
tags: ["Apps"]
---

# Generate an app access token

`POST /app/accessTokens`

## Request

- Base URL: `https://api.carbonregistry.com`
- URL: `https://api.carbonregistry.com/app/accessTokens`
- Auth: none declared
- TypeScript: <https://skmtc.dev/carbonregistry/apis/carbon-registry-rest-api/docs/app/accessTokens/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint generates an app access token. This access token can be used to access app specific resources and general "public" resources, like the /projects endpoint.

## Headers

- `x-icr-api-version` string

## Response `200`

- ApiAppAccessToken
  - `id` string, required: The ID of the access token
  - `createdAt` string, date-time, required: The date and time the access token was created
  - `updatedAt` string, date-time, required: The date and time the access token was last updated
  - `token` string, required: The access token string
  - `expiresAt` string, date-time, required: The date and time the access token expires
  - `isActive` boolean, required: Whether the access token is currently active
  - `permissions` object, required: The permissions of the access token
  - `appId` string, required: The ID of the app associated with the access token

---

[API](https://skmtc.dev/carbonregistry/apis/carbon-registry-rest-api.md) - [All operations](https://skmtc.dev/carbonregistry/apis/carbon-registry-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/carbonregistry/apis/carbon-registry-rest-api/revisions/a9f1b102faca?raw)
