Skip to content
中文

List grants

GET /application/v1/workers/{worker_id}/grants

List resources this Worker’s platform token may access.

Support: supported

Parameters

NameLocationTypeRequiredDescription
worker_idpathstringtrueWorker ID (wkr_…).

Response

HTTP 200

Success

application/json

Name Type Description
[].id string Grant ID, prefixed grt_.
[].worker_id string Owning Worker.
[].resource object Granted resource.
[].resource.type string Resource type.
[].resource.id string ID of the granted resource; * for models and whole-service types.
[].alias string Optional name, unique within this Worker. Conflicts return GRANT_ALIAS_CONFLICT (409).
[].access string Access level; models accepts read only.
[].created_on string When the grant was created.