Help CenterVying
Open Vying
Menu

Describe the Calling Key

GET/me

What this key is, which organization and brands it reaches, and which scopes it holds. Requires no scope, so it is always safe to call first when wiring up an integration.

Works with any valid key. About keys

Request

curl "https://app.vyingfor.com/api/v1/me" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

200 Describe the calling key

FieldTypeDescription
keyType"organization"

Always organization for keys made in the app.

organizationIdstring or null

The organization this key acts inside.

organizationNamestring or null
scopes("read" | "write")[]

Scopes this key holds.

brandIdsarray or null

Brands the key is narrowed to, or null when it reaches every brand in its organization. Never an empty array — a restriction to no brands is rejected at creation rather than treated as no restriction.

createdAtstring or null
expiresAtstring or null

When the key stops working, if it has an expiry.

rateLimitobject or null

The key's configured limit — generous by design: it exists to stop a runaway loop, not to meter normal use. Enforcement is a fixed window and approximate under concurrency.

createdBystring or null

The key's label, as given when it was issued.

lastUsedAtstring or null

Errors