Deployments.ai Docs
Apps

List an app's member grants

GET /v1/apps/{appId}/grants · SDK listAppGrants · CLI deployments app-grant list

GET
/v1/apps/{appId}/grants

Requires apps:read; admits human and service-account callers.

Authorization

platformBearer
headerAuthorizationBearer <token>

Platform bearer credential accepted as an opaque API key or JWT.

Path Parameters

appId*string
Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Query Parameters

cursor?string
Length1 <= length <= 4096
limit?integer
Range1 <= value <= 100

Header Parameters

x-deployments-environment*string
Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Response Body

ListAppGrantsResponse

application/json
  1. response
items*array<>
nextCursor?|null|null
curl -X GET "https://example.com/v1/apps/string/grants" \  -H "x-deployments-environment: string"
{  "items": [    {      "appId": "string",      "createdAt": "2019-08-24T14:15:22Z",      "grantedBy": "string",      "principalId": "string",      "role": "viewer",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}