---
title: "Create Grant Endpoint"
method: POST
path: "/auth/grants"
tags: ["Grants"]
---

# Create Grant Endpoint

`POST /auth/grants`

## Request body

- CreateGrantRequest
  - `resource_id` string, required
  - `can_create` boolean
  - `can_read` boolean
  - `can_update` boolean
  - `can_delete` boolean
  - `can_invoke` boolean
  - `can_add` boolean
  - `can_share` boolean
  - `can_admin` boolean
  - `grantee_type` string
  - `grantee_id` string, nullable
  - `target_entity` string, nullable
  - `target_entity_type` string, nullable
  - `max_claims` integer, nullable
  - `requires_identity` boolean
  - `name` string, nullable
  - `notes` string, nullable
  - `expires_at` string, nullable
  - `state` string
  - `role` string, nullable
  - `message` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agience/apis/agience-platform-api.md) · [All operations](https://skmtc.net/agience/apis/agience-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agience/agience-platform-api/versions/187bad270c94/schema)
