Skip to content

Create an audience ​

POST/api/v2/workspaces/{slug}/audiences/

Create an audience: a named list of the workspace roles, project roles, and people who can see the work items it restricts. Only name is required. The role and member lists are optional, so you can create an empty audience and fill it in later with Update an audience.

Creating an audience restricts nothing yet. It takes effect once you attach it to a workspace work item type, a project work item type, or a work item.

Get role ids from List roles with ?namespace=workspace or ?namespace=project, and user ids from List workspace members.

Path parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

Body parameters ​

name:requiredstring

Display name for the audience. Maximum 255 characters. It can't be blank, and another audience in the workspace with the same name returns 409.

description:optionalstring

A note on what the audience is for. Defaults to an empty string.

logo_props:optionalobject

Icon descriptor shown next to the audience in Plane. Defaults to {}.

is_active:optionalboolean

Whether the audience restricts the work items it is attached to. Defaults to true. Create it with false to set it up and attach it before it takes effect.

workspace_role_ids:optionalarray of string (uuid)

Workspace roles whose holders the audience admits. Each id must be a workspace role of this workspace or a system workspace role. The owner and admin roles return 400, because their holders always see restricted work items. Duplicate ids count once.

project_role_ids:optionalarray of string (uuid)

Project roles whose holders the audience admits, only in the projects where they hold the role. Each id must be a project role of this workspace or a system project role. Include the project admin role here if project admins should see the restricted work items. Duplicate ids count once.

member_ids:optionalarray of string (uuid)

User ids the audience admits by name, whatever their role. Each one must be an active member of the workspace. Duplicate ids count once.

Response shaping ​

fields:optionalstring

Comma-separated list of fields to return. Fields you don't request are left out of the response instead of coming back as null. id is always included. Pass all to get every requestable field.

An unknown field name returns 400 with the list of valid names, so a typo is caught instead of being silently ignored. See Sparse fields.

Requestable here: created_at, created_by_id, description, id, is_active, logo_props, member_ids, name, project_role_ids, updated_at, updated_by_id, usage_count, workspace_role_ids.

expand:optionalstring

Comma-separated relations to embed alongside the ids: members (the users behind member_ids, each with id, display_name, avatar_url, and email). Like member_ids, it is empty unless you can edit audiences.

Expanded objects get their own key: ?expand=members keeps member_ids and adds a members array next to it. An unknown value returns 400. See Expanding relations.

Scopes ​

workspaces.audiences:write

Errors ​

StatusCodeCause
400invalid_requestname is missing or blank. Or a role id is unknown, in the wrong namespace, or the workspace owner or admin role. Or a user in member_ids isn't an active workspace member.
401unauthorizedMissing or invalid credentials.
402payment_requiredWork item security isn't on your plan, or is switched off.
403forbiddenYour role can't create audiences, or your token scope doesn't allow this.
404not_foundNo such workspace, or it's outside your tenant.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409conflictAnother audience in this workspace already has this name.
413payload_too_largeThe request body is over the size limit.
415unsupported_media_typeThe Content-Type isn't one this endpoint accepts.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Create an audience
bash
curl -X POST \
  "https://api.plane.so/api/v2/workspaces/my-team/audiences/" \
  -H "X-Api-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Security response",
  "description": "Can see vulnerability reports.",
  "workspace_role_ids": ["2d9928ef-5023-492a-aa63-98d19b8c52ca"],
  "project_role_ids": ["9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88"],
  "member_ids": ["7f2b9e04-6c1d-4a58-9e3b-0d4c8a2f6b71"]
}'
Response201
json
{
  "id": "8bcf2c8f-7bd0-4d0c-bdc6-82df9fa1f312",
  "name": "Security response",
  "description": "Can see vulnerability reports.",
  "logo_props": {},
  "is_active": true,
  "workspace_role_ids": ["2d9928ef-5023-492a-aa63-98d19b8c52ca"],
  "project_role_ids": ["9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88"],
  "member_ids": ["7f2b9e04-6c1d-4a58-9e3b-0d4c8a2f6b71"],
  "usage_count": 0,
  "created_at": "2026-11-18T09:12:44.231907Z",
  "updated_at": "2026-11-18T09:12:44.231907Z",
  "created_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
  "updated_by_id": null
}
Response400
json
{
  "type": "invalid_request",
  "code": "invalid_request",
  "detail": "One or more fields failed validation.",
  "errors": [
    {
      "field": "workspace_role_ids",
      "code": "invalid",
      "message": "Structural roles cannot be added to an audience: admin"
    }
  ]
}
Response409
json
{
  "type": "conflict",
  "code": "conflict",
  "detail": "An audience with this name already exists in this workspace."
}

The new audience's activity feed starts with one created entry. The roles and members you send on create don't add role_added or member_added entries. Later changes through update do.