Skip to main content
POST
/
api
/
v2
/
sessions
/
{id}
/
share
Share a session
curl --request POST \
  --url https://agp.eu.hcompany.ai/api/v2/sessions/{id}/share \
  --header 'Authorization: Bearer <token>'
Make a session publicly accessible via a share URL. Anyone with the link can view the session without authentication.

Make public

POST /api/v2/sessions/{id}/share Returns 200 with a ShareLink object.

Path parameters

id
string
required
The session ID.

Response

{
  "share_url": "/share/api/v1/trajectories/{id}"
}

Example

curl -X POST https://agp.eu.hcompany.ai/api/v2/sessions/$SESSION_ID/share \
  -H "Authorization: Bearer $H_API_KEY"

Revoke public access

DELETE /api/v2/sessions/{id}/share Revokes the public share link. The session is no longer accessible without authentication. Returns 204 No Content.

Example

curl -X DELETE https://agp.eu.hcompany.ai/api/v2/sessions/$SESSION_ID/share \
  -H "Authorization: Bearer $H_API_KEY"