List access profile agent grants
Lists the agents holding a project access profile, with granted scope, expiry, and usage counts. Private agents' titles are omitted.
GET
Lists the agents holding a project access profile, with granted scope, expiry, and usage counts. Private agents' titles are omitted.
bearerheader
AuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
Match
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$accessProfile*stringThe access profile's ID.
Match
^acp_[0-7][0-9a-hjkmnp-tv-z]{25}$pageSize?integerMaximum number of items to return. Defaults to 50; values above 500 are treated as 500.
Format
int32Range
0 <= valuepageToken?stringPage token from a previous response.
OK
application/json- response
grants*array<>Agents holding this resource, newest grant first.
nextPageToken*stringToken for the next page; empty on the last page.
curl -X GET 'https://api.kosem.ai/v1/projects/string/accessProfiles/string/agentGrants'Example Response
{
"grants": [
{
"agent": "string",
"createTime": "2019-08-24T14:15:22Z",
"expireTime": "2019-08-24T14:15:22Z",
"grantId": "string",
"grantor": "string",
"lastUsedTime": "2019-08-24T14:15:22Z",
"private": true,
"scope": {
"property1": null,
"property2": null
},
"title": "string",
"useCount": 0
}
],
"nextPageToken": "string"
}