Skip to content
Docs
Esc
↑↓navigate↵open⌘Jpreview

The signed-in account.

Answers the signed-in account: its wallets, linked logins and the consents still required before the app opens.

GET/v1/me
Authorization
sessionAPI key · cookierequired

An opaque, revocable INVICTUS session set by createSession.

Header parameters
X-Telegram-Userstring

With the service credential: the linked Telegram user the call acts for.

matches ^[0-9]{1,20}$
Responses
200

Success.

idstringrequired

The account's id.

matches ^[A-Za-z0-9_-]{8,64}$
usernamestring | nullrequired

The account's username; null until claimed.

Show properties
Any of:
string
string
null
null
picturestring<uri-reference> | nullrequired

The account's picture, or null.

Show properties
Any of:
string<uri-reference>
string<uri-reference>
null
null
identitiesobject[]required

The login methods linked to the account.

max items 10
Show properties
Array of object
methodstringrequired

How the user logs in.

Allowed:googletelegramwallet
labelstringrequired

What identifies the login: an email, a handle, an address.

max length 80
linkedAtintegerrequired

When it was linked, in Unix seconds.

min 0 · max 9007199254740991
walletsAccountWallet[]required

The account's wallets.

max items 10
Show properties
Array of AccountWallet
idstringrequired

The wallet as family:address.

matches ^(evm|solana):[A-Za-z0-9]{1,57}$
familystringrequired

The chain family: EVM or Solana.

Allowed:evmsolana
addressstringrequired

The wallet's address on its family's chains.

min length 1 · max length 64
kindstringrequired

embedded is made and held through Privy; linked is the user's own wallet, which signs and sends itself.

Allowed:embeddedlinked
namestringrequired

The name the user gave the wallet.

min length 1 · max length 40
privyWalletIdstring | nullrequired

The wallet's id at Privy, checked by the API; null for a linked wallet.

Show properties
Any of:
string
string
null
null
consentsobject[]required

The consent texts the account accepted, by version.

max items 20
Show properties
Array of object
kindstringrequired
Allowed:termsrisk
versionstringrequired
max length 32
acceptedAtintegerrequired

A point in time: Unix time in whole seconds, UTC.

min 0 · max 9007199254740991
requiredConsentsobject[]required

Consents still to accept; the app stays gated until this is empty.

max items 5
Show properties
Array of object
kindstringrequired
Allowed:termsrisk
versionstringrequired
max length 32
urlstringrequired
matches ^\/(?!\/)
mfaobject | nullrequired

Whether the user enrolled a second factor at Privy, and which methods; null while it has not been read from Privy.

Show properties
Any of:
object
enrolledbooleanrequired
methodsstring[]required
max items 2
null
null
createdAtintegerrequired

When the account was created, in Unix seconds.

min 0 · max 9007199254740991
asOfintegerrequired

When this answer was read, in Unix seconds.

min 0 · max 9007199254740991
401

No session, or it ended.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
429

Too many requests; retryAfterSeconds says when to ask again.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
500

Server error.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
Try it
Server
Authorization
Parameters
Request
curl -X GET '/v1/me' \
  -H 'Cookie: session=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "id": "Xq3v9Kp2LmN8RtY4",
  "username": "string",
  "picture": "../dictionary",
  "identities": [
    {
      "method": "google",
      "label": "string",
      "linkedAt": 1793145600
    }
  ],
  "wallets": [
    {
      "id": "evm:0x4200000000000000000000000000000000000006",
      "family": "evm",
      "address": "string",
      "kind": "embedded",
      "name": "string",
      "privyWalletId": "string"
    }
  ],
  "consents": [
    {
      "kind": "terms",
      "version": "string",
      "acceptedAt": 1793145600
    }
  ],
  "requiredConsents": [
    {
      "kind": "terms",
      "version": "string",
      "url": "string"
    }
  ],
  "mfa": {
    "enrolled": true,
    "methods": [
      "passkey"
    ]
  },
  "createdAt": 1793145600,
  "asOf": 1793145600
}