List access grants
GET
/triggers/{id}/access
const url = 'https://localhost:3000/api/v1/triggers/example/access';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:3000/api/v1/triggers/example/access \ --header 'Authorization: <Authorization>'Lists all access grants for a trigger
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Trigger ID (UUID)
Responses
Section titled “Responses”OK
Media typeapplication/json
object
accesses
required
Array<object>
object
account_id
required
string
granted_at
required
string
granted_by
required
string
id
required
string
permissions
required
Array<string>
trigger_id
required
string
Example generated
{ "accesses": [ { "account_id": "example", "granted_at": "example", "granted_by": "example", "id": "example", "permissions": [ "example" ], "trigger_id": "example" } ]}Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Forbidden
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Not Found
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}