ServicesAuthorizationHTTP APIRole grants

Read_grant

GET
/api/authorization/grants/{grant_id}

Read a role grant by its durable ID with project view grants permission, including revoked grants.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

grant_id*string

Response Body

Success

application/json
  1. response

A role granted to a principal in one Project.

conditions*
id*string
principal*string
projectId*string
role*authorization.Role

Project authorization role.

Value in"admin""editor""viewer"
curl -X GET 'https://api.spiraldb.dev/api/authorization/grants/string'
{  "conditions": {    "property1": "string",    "property2": "string"  },  "id": "string",  "principal": "string",  "projectId": "string",  "role": "admin"}