Check Contra Session

PythonSocial Media
POST api.upapi.io/contra-check-session.get

Report 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

FieldTypeDescription
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
objectContra session cookies for the account whose session is being checked. Your own Contra account's cookies; upAPI stores nothing.

Response schema

FieldTypeDescription
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.

Sign in

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.