POST
/v1/agent/contacts/{id}/request
Request access to a contact
Use when the agent cannot load full contact details because the contact is not visible under normal visibility rules (for example private contacts without an approved access grant). This creates or returns a **pending** `contact_access` row for the current user. If the agent **already** has access to the contact (including public/shared visibility), the API responds with **400** (`already_has_access`). If the contact does not exist, **404**. Response body wraps the row under **`access`**.
curl -X POST https://api.{cluster}.{platform}.voiger.io/v1/agent/contacts/{id}/request \ -H "Cookie: sid=$VOIGER_SESSION" \ -H "x-workspace-code: your-workspace-code" \ -H "x-csrf-token: $CSRF_TOKEN"
Parameters
x-workspace-code
string
required
in header
x-csrf-token
string
required
in header
id
string
required
in path
Response
access▾idcontact_idstatusgrantee_typegrantee_iddescription