---
title: "POST /users/{id}/grants"
method: POST
path: "/users/{id}/grants"
tags: ["users"]
---

# POST /users/{id}/grants

`POST /users/{id}/grants`

Create a grant (authorize an app to act on the user's behalf)

## Path parameters

- `id` string, required

## Request body

- CreateGrantRequestBody
  - `app_api_key` string, required — The developer app address (API key) to grant authorization to

## Response `200`

Grant created successfully

- WriteResponse
  - `transaction_hash` string — The blockchain transaction hash
  - `block_hash` string — The blockchain block hash
  - `block_number` integer — The blockchain block number/height

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden (user ID does not match)
- `500` — Server error

---

[API](https://skmtc.dev/audius/apis/audius-api.md) · [All operations](https://skmtc.dev/audius/apis/audius-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/audius/audius-api/revisions/940230b2ed3d/schema)
