Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
access
/
requests
/
{requestId}
Approve or reject an access request
curl --request POST \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/access/requests/{requestId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "approve"
}
'
{
  "_id": "<string>",
  "agent_id": "<string>",
  "requester_id": "<string>",
  "requester_email": "<string>",
  "status": "approved",
  "resolved_by": "<string>",
  "rejection_reason": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Path Parameters

agentId
string
required
Maximum string length: 64
requestId
string
required
Maximum string length: 128

Body

application/json
action
enum<string>
required
Available options:
approve,
reject
Maximum string length: 16
rejection_reason
string
Maximum string length: 1024

Response

Resolved request.

_id
string
agent_id
string
requester_id
string
requester_email
string
status
enum<string>
Available options:
approved,
rejected
resolved_by
string
rejection_reason
string