Create Clerk organization role

Create a new organization role in a connected Clerk application.

← All Clerk endpoints · Capability overview

POST/v1/clerk/organization-roles

https://api.vee3.io/v1/clerk/organization-roles

10 tokens

Create a new organization role in a connected Clerk application.

Authorization

Send your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

MCP

The same capability is available as an MCP tool on Vee3 hosted MCP.

Tool name

clerk.create_organization_role
Parameters6 fields
clerk_instance_idstringOptional

Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.

namestringRequired

Role display name.

keystringRequired

Unique role key.

descriptionstringOptional

Role description.

permissionsarrayOptional

Permission keys to assign to the new role.

include_in_initial_role_setbooleanOptional

Whether to include this role in the initial role set.

Response16 fields
organization_roleobject
15 fields

Newly created organization role summary.

idstring

Clerk organization role id.

namestring

Role display name.

keystring

Role key used in memberships.

descriptionstring

Role description.

is_creator_eligibleboolean

Whether this role may be assigned as organization creator.

permissionsarrayitems
7 fields

Permissions assigned to this role.

idstring

Clerk organization permission id.

namestring

Permission display name.

keystring

Permission key used in role assignments.

descriptionstring

Permission description.

typestring

Permission type (system or custom).

created_atinteger

Unix timestamp in milliseconds when the permission was created.

updated_atinteger

Unix timestamp in milliseconds when the permission was last updated.

created_atinteger

Unix timestamp in milliseconds when the role was created.

updated_atinteger

Unix timestamp in milliseconds when the role was last updated.

HTTP errors: clerk_connection_required, clerk_connection_not_found, clerk_connection_invalid, validation_error, unauthorized, payment_required