Skip to content
API reference Who am I
API reference Account

Get the key's workspace

Returns the workspace a key acts in, the key's scopes, its creator's role and whether money fields are visible.

GET/api/v1/public/me

Use this to check a key before you build on it. No scope beyond read is needed.

Response

workspace.idstring
Workspace UUID.
workspace.namestring
Workspace name.
workspace.slugstring
Workspace slug.
authstring
api_key, or session when called with a signed-in session token.
keyobject | null
The key, or null for a session.
key.idstring
Key UUID.
key.namestring
The name given at creation.
key.prefixstring
The first 12 characters of the key.
key.scopesarray
Any of read, write, read:money.
rolestring
The creator's current role slug: admin, manager (Creative Manager), creator (Editor) or editor (Agency).
revenue_visibleboolean
Whether money fields are returned to this key.

Example request

curl https://api.pipory.com/api/v1/public/me \
  -H "Authorization: Bearer pip_your_key"

Example response

{
  "workspace": {
    "id": "0b5e7d1a-3c2f-4e8b-9a6d-1f2e3d4c5b6a",
    "name": "Acme Watches",
    "slug": "acme-watches"
  },
  "auth": "api_key",
  "key": {
    "id": "7c9e2b4d-1a3f-4b5c-8d6e-9f0a1b2c3d4e",
    "name": "Zapier",
    "prefix": "pip_Q2x8mKpL",
    "scopes": ["read", "write"]
  },
  "role": "admin",
  "revenue_visible": false
}

Errors

StatusCodeMeaning
401invalid_api_keyMissing, unknown, revoked or expired key
403upgrade_requiredThe workspace is not on a paid plan
429rate_limitedOver the key's rate limit