The caller's permissions in the current organisation.
GET
/api/permissions
const url = 'https://app.agentic.figentra.com/api/permissions';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
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://app.agentic.figentra.com/api/permissions \ --cookie session=<session>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
organisationId
required
string
role
required
string
permissions
required
Array<string>
Example
{ "role": "owner", "permissions": [ "project.read" ]}default
Section titled “default”Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
Example generated
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" } }}