Skip to content

Get the current integration

Returns the integration that owns the API key, with its scopes and its product.

GET /v1/me

Use cases

  • Check that a new API key works.
  • Show which integration and which key a program uses.
  • Read the scopes of the integration before a call.

Authentication

Send an API key. This endpoint requires no scope, so an integration without any scopes can call it. See Authentication.

Request

Headers

HeaderRequiredDescription
AuthorizationYesThe word Bearer, a space and the API key.

Response

The answer has the status 200.

FieldTypeDescription
orgobjectThe organization that owns the integration. See Org.
integrationobjectThe integration that owns the API key. See Integration.
keyobjectThe API key of the request. See Key.
scopesarray of stringsEvery scope of the integration. A write scope adds the read scope of the same resource, so both are in the list. See Scopes.

Org

FieldTypeDescription
idstringThe ID of the organization.
namestringThe name of the organization.

Integration

FieldTypeDescription
idstringThe ID of the integration.
namestringThe name of the integration.
product_idstring or nullThe ID of the product that the integration is limited to. It is null when the integration can reach every product. See Product.

Key

FieldTypeDescription
idstringThe ID of the key.
namestringThe name of the key.
expires_atstring or nullThe time when the key expires. It is null when the key does not expire.

Errors

StatusReasonDescription
401An API key is required.The request has no Authorization header, the header is empty, or the header does not use the Bearer scheme.
401The API key is not valid.No integration has this key.
401The API key has expired.The expiry date of the key has passed.
429There are too many requests. Try again later.See Rate limits.

See Errors.

Example

curl https://api.seatify.dev/v1/me \
  -H "Authorization: Bearer $SEATIFY_API_KEY"

The answer:

{
  "org": {
    "id": "<org id>",
    "name": "Northwind Software"
  },
  "integration": {
    "id": "<integration id>",
    "name": "Zapier",
    "product_id": "<product id>"
  },
  "key": {
    "id": "<key id>",
    "name": "production",
    "expires_at": null
  },
  "scopes": [
    "policies:read",
    "licenses:read",
    "licenses:write",
    "customers:read",
    "customers:write"
  ]
}