---
title: "Add tokens"
method: POST
path: "/api/v2/paths/add-tokens"
tags: ["Paths"]
---

# Add tokens

`POST /api/v2/paths/add-tokens`

> 🔑
>
> Required OAuth scope: `tokens:write`.

Add tokens to a specific group for a given path.

## Headers

- `360-api-version` 'v2.0', required

## Request body

- AddTokensBody
  - `authorId` string, ObjectId, required — The unique ID of the user adding the tokens.
  - `groupId` string, ObjectId, required — The unique ID of the group to which tokens are being added.
  - `numberTokensBought` integer, required — The number of tokens being added.
  - `pathId` string, ObjectId, required — The unique ID of the path associated with the tokens.

## Response `204`

Add tokens.

## Other responses

- `401` — The given access token is either missing, invalid, has expired, or has been revoked.
- `403` — The given access token does not have the required OAuth scope to execute the request.
- `404` — The server cannot find the requested resource.
- `429` — The client has sent too many requests in a short amount of time.

---

[API](https://skmtc.net/360learning/apis/core-api.md) · [All operations](https://skmtc.net/360learning/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/360learning/core-api/revisions/94b691b0b72c/schema)
