Skip to content

Identify the calling key

GET
/me
curl --request GET \
--url https://api.1up.gift/me \
--header 'Authorization: Bearer <token>'

Returns the customer the API key was issued to, the service account it acts as, and the environment it is valid in. Useful as a first call to confirm a key works and is pointed at the right environment.

The key is valid; the caller it identifies is returned.

Who the calling API key belongs to.

object
customerId

The customer the key was issued to. Every call is scoped to this customer.

integer format: int64
environment

The environment the key is valid in, for example production or staging.

null | string
customerName

The customer’s name.

null | string
serviceAccountId

The service account this key belongs to — who the API acts as, and what every order it places is attributed to.

integer format: int64
serviceAccountName

The service account’s name, as it appears in reporting.

null | string