Check Contra Session
PythonSocial MediaPOST api.upapi.io/contra-check-session.getReport whether a Contra session cookie is still authenticated. Returns the account id when it is and false when it is not. Uses your own Contra account; upAPI stores nothing.
contraidentity
AuthAPI key
Cost1 unit
Timeout45s
CacheNone
Request schema
| Field | Type | Description |
|---|---|---|
docId | Override the pinned persisted-query id for this call. Pass a freshly discovered 32-hex id when Contra has rotated its query ids.· default: null | |
proxyUrl | Exit IP pinned to this account. Omit to use the shared pool.· default: null | |
sessionCookiesreq | object | Contra session cookies for the account whose session is being checked. Your own Contra account's cookies; upAPI stores nothing. |
Response schema
| Field | Type | Description |
|---|---|---|
checkedAtreq | string | |
elapsedMsreq | integer | |
authenticatedreq | boolean | |
userAccountIdreq |
Try it
Try it
Contra session cookies for the account whose session is being checked. Your own Contra account's cookies; upAPI stores nothing.
Override the pinned persisted-query id for this call. Pass a freshly discovered 32-hex id when Contra has rotated its query ids.
Exit IP pinned to this account. Omit to use the shared pool.
Run this endpoint live
Jump in as a guest — no signup — and run contra-check-session.get with your own inputs. Create a free account anytime to get your own API key.
Code examples
curl -X POST https://api.upapi.io/contra-check-session.get \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{ "sessionCookies": {} }'Developer tools
OpenAPI specImport the spec or collection into Postman, Insomnia, or any codegen tool.