Skip to content
Sections · Discovery

API reference

Discovery

What the calling token is and which workspace it belongs to.

Endpoints

Paths are relative to https://your-workspace.reevio.app/api/public/v1. Every call needs a bearer token holding the scope shown.

The token info object

  • tokenobject

    The calling token.

    Show child fields
    • labelstring

      The token's label.

    • scopeslist of strings

      The scopes the token holds.

    • expires_atstring (timestamp)nullable

      When the token expires; null when it never does.

    • allowed_ipslist of stringsnullable

      Addresses the token may be used from; null for anywhere.

  • userobject

    The user the token acts as. Its role is the ceiling for every call.

    Fields: id, name · details

  • workspaceobject

    The workspace the token belongs to.

    Show child fields
    • namestring

      The workspace's name.

    • functional_currencyobject

      The workspace's functional currency.

      Fields: code, name, sign · details

    • timezonestring

      The workspace's timezone. Dates (*_on) are on its calendar.

    • todaystring (date)

      Today's date on the workspace calendar.

Example
{
  "token": {
    "label": "Storefront sync",
    "scopes": [
      "sales.customers.read"
    ],
    "expires_at": "2026-10-31T09:15:00.000000Z",
    "allowed_ips": [
      "Example allowed ip"
    ]
  },
  "user": {
    "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
    "name": "Storefront integration"
  },
  "workspace": {
    "name": "Example name",
    "functional_currency": {
      "code": "IQD",
      "name": "Iraqi Dinar",
      "sign": "IQD"
    },
    "timezone": "Asia/Baghdad",
    "today": "2026-10-31"
  }
}

Describe the calling token, its user and the workspace

GET/token

No scope needed

No scope needed. Call it first to learn the functional currency, timezone and today's business date.

Returns

Returns the token info object.

Errors

  • 401Missing, malformed, expired or revoked token.
  • 403Token or account refused.
curl "https://your-workspace.reevio.app/api/public/v1/token" \
  -H "Authorization: Bearer $REEVIO_TOKEN"
Response
{
  "data": {
    "token": {
      "label": "Storefront sync",
      "scopes": [
        "sales.customers.read"
      ],
      "expires_at": "2026-10-31T09:15:00.000000Z",
      "allowed_ips": [
        "Example allowed ip"
      ]
    },
    "user": {
      "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
      "name": "Storefront integration"
    },
    "workspace": {
      "name": "Example name",
      "functional_currency": {
        "code": "IQD",
        "name": "Iraqi Dinar",
        "sign": "IQD"
      },
      "timezone": "Asia/Baghdad",
      "today": "2026-10-31"
    }
  }
}