Sessions
List session pins
/v1/session-pinsResponses
200
pinssourcesessionIdpinnedversionupdatedAt
chatsidtitlemodemodellastModelteamarchivedwebSearchmessageCountcostUsdcreatedAtupdatedAtvisibilitysharingartifactIdversionaudiencekindteamspeople
allowContinueurlpathviewerUrlpublicUrlexpiresAt
artifactsidversionstatusaudiencecreatedAtrevokedAt
authoremailname
forkedFromartifactIdversiontitle
threadsthreadIdpersonIdagentmodelstatustotalsinputTokensoutputTokenscacheReadTokenscacheWriteTokenscostUsd
lastSeqkeyVersionprivatefollowerslastEventAtcreatedAtupdatedAt
Errors
| Status | Code | When |
|---|---|---|
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/session-pins" \
-H "Authorization: Bearer $NEXUS_API_KEY"Set session pin
/v1/session-pins/{source}/{id}Parameters
sourceid
Request body · application/json
pinnedexpectedVersion
Responses
200
sourcesessionIdpinnedversionupdatedAt
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | The caller cannot pin this session. | |
| 409 | Another device changed this pin (`session_pin_changed`). Read the current list before retrying. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X PUT "$NEXUS_URL/v1/session-pins/<source>/<id>" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"pinned": false,
"expectedVersion": 1
}'