---
title: "Create permission"
method: POST
path: "/permissions"
tags: ["product:chat"]
---

# Create permission

`POST /permissions`

Creates permission

## Request body

- PermissionRequest, nullable
  - `action` string, required — Action name this permission is for (e.g. SendMessage)
  - `condition` object — MongoDB style condition which decides whether or not the permission is granted
  - `description` string — Description of the permission
  - `name` string, required — Name of the permission
  - `owner` boolean — Whether this permission applies to resource owner or not
  - `same_team` boolean — Whether this permission applies to teammates (multi-tenancy mode only)

## Response `201`

Response

- Response, nullable — Basic response information
  - `duration` string, required — Duration of the request in milliseconds

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.net/getstream/apis/stream-api.md) · [All operations](https://skmtc.net/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getstream/stream-api/revisions/b86c9656c28f/schema)
