Przejdź do głównej zawartości

CurrentApiKey

Dla: Programista

Typ obiektowyCurrentApiKey

The API key a request was made with: whose it is, what it may do now and until when. Never contains the key itself.

Pola

PoleTypOpis
approvalExpiresAtDateTime

When Prynt's approval of the integration ends: from then on no key of the integration works, so a new key does not help. Always set today; null is reserved for an approval without an end date, which Prynt does not grant yet.

expiresAtDateTime!

When the key stops working. Rotate it before then: an integration may have two keys at a time.

hintString!

Last four characters of the key, for example k3Fq (Prynt shows the key as prynt_…k3Fq): tells which key of the integration is in use.

integrationCurrentApiKeyIntegration!

The integration the key belongs to.

rateLimitPerMinuteInt!

Requests per minute the integration may send, all of its keys together. The RateLimit-* response headers show what is left.

scopes[String!]!

Scopes the key may use now, for example orders:read — the same for every key of the integration. Prynt approves them; the scopes page of the developer documentation explains each one.

Używane w