Skip to main content
POST
Create Access Profile

Authentication and permissions

Token requirements: User-based token (OAuth) or Organization-scoped API key or Workspace-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Permissions joined by + are all required; or separates alternatives. Full-access keys still cannot call endpoints marked unsupported. Workspace keys must allow every workspace checked by the request. OAuth access depends on the user’s roles and resource access.
  • Request eligibility: The birthright policy is omitted.
  • With a birthright policy: A birthright policy is supplied, including when disabled. Its audience and automatic roles are independent of request eligibility.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
teamId
string
required

The ID of the workspace to create the access profile for.

name
string
required

The name of the access profile.

description
string | null

A description of the access profile.

matchingCriteria
matching_criteria · object

The rules that determine which users this profile applies to.

grants
grants · object
deprecated

Deprecated: create the profile first, then attach grants through the access-profile-grant endpoints (/v2/access-profile-grants). Still honored for compatibility until writes are rejected. Roles listed here control request eligibility; birthright has a separate role list.

scopedId
string | null

Stable, workspace-scoped identity for the profile (apr_ + 22 base62 chars). Omit to have one minted. Must be unique within the workspace; reserved sentinel values (built-in profiles) are rejected.

birthright
birthright · object

Independent automatic access. Requires access-profiles:assign. Request eligibility and automatic grants have separate audiences and role lists.

accessBundles
access_bundles · object

Access bundles this profile makes requestable.

Response

200 - application/json

Success

data
data · object

An access profile defines which entitlements are available to which groups of users, and which workflows apply.