Skip to content

List messages for an access request

GET
/v1/requests/{id}/messages
curl --request GET \
--url 'https://example.com/v1/requests/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/messages?limit=50' \
--header 'X-API-Key: <X-API-Key>' \
--header 'X-Tenant-ID: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0'
id
required
string format: uuid
X-Tenant-ID
required
string format: uuid

Tenant identifier. Must match the tenant associated with the credential. Returns 403 tenant_mismatch if the credential and header belong to different tenants.

limit
integer
default: 50 <= 250

Maximum number of items to return.

cursor
string

Opaque pagination cursor from a previous response. Omit for the first page.

OK

Media type application/json
object
data
required
Array<object>
object
id
required
string format: uuid
request_id
required
string format: uuid
author_type
required
string
Allowed values: user approver system ai
author_id
required
string
content
required
string
metadata
required
object
key
additional properties
any
created_at
required
string format: date-time
next_cursor
string
nullable
has_more
required
boolean
Example
{
"data": [
{
"author_type": "user"
}
]
}

Unauthenticated

Media type application/json
object
code
required

Machine-readable error code (e.g. “not_found”, “tenant_mismatch”).

string
message
required

Human-readable description of the error.

string
details

Optional additional context about the error.

object
key
additional properties
any
notices

Policy notices from determining Cedar rules, if applicable.

Array<string>
Example generated
{
"code": "example",
"message": "example",
"details": {},
"notices": [
"example"
]
}

Forbidden

Media type application/json
object
code
required

Machine-readable error code (e.g. “not_found”, “tenant_mismatch”).

string
message
required

Human-readable description of the error.

string
details

Optional additional context about the error.

object
key
additional properties
any
notices

Policy notices from determining Cedar rules, if applicable.

Array<string>
Example generated
{
"code": "example",
"message": "example",
"details": {},
"notices": [
"example"
]
}

Not found

Media type application/json
object
code
required

Machine-readable error code (e.g. “not_found”, “tenant_mismatch”).

string
message
required

Human-readable description of the error.

string
details

Optional additional context about the error.

object
key
additional properties
any
notices

Policy notices from determining Cedar rules, if applicable.

Array<string>
Example generated
{
"code": "example",
"message": "example",
"details": {},
"notices": [
"example"
]
}