Assign a role to an admin API key
One step with Flagsmith. We can help you get access.
Get something done
Assign a role to an admin API key
with Flagsmith
Works with AI assistants
Use Flagsmith: its Flagsmith Organisations API lets you assign a role to an admin API key in a single step (POST /api/v1/organisations/{organisation_pk}/roles/{role_pk}/master-api-keys/). Flagsmith also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I scope a master API key by giving it a role?
- Can I attach a role to an existing admin key from the role's side?
Say it to your AI assistant
- Assign role {role_pk} to master API key {master_api_key} in organisation {organisation_pk}.
- Give admin key {master_api_key} the role {role_pk} in organisation {organisation_pk}.
For your developer
POST /api/v1/organisations/{organisation_pk}/roles/{role_pk}/master-api-keys/ in Flagsmith Organisations API. Full spec on APIs.io.