Skip to content

Platform API

Manage your workspaces, apps and versions from your own code.

The Platform API manages the account itself: workspaces, apps, versions and domains. It is a different API from the one that serves the data inside an app. For records and app users, see the App data API.

Base URL
https://apipublic.yeshbe.com/api/platform/v1

Make your first call#

  1. Create a key

    Create an API key on the API keys page. It is shown once, at the moment it's created. See API keys.

  2. Send it as a bearer token

    Header
    Authorization: Bearer yb_live_a3f2c9d1e8b4f7a2c5d9e1b3f6a8c2d4
  3. Ask who you are

    GET /me returns the account and exactly what the key you're holding is allowed to do.

    curl "https://apipublic.yeshbe.com/api/platform/v1/me" \ -H "Authorization: Bearer $YESHBE_KEY"

Responses#

Every response has the same shape, whether it succeeded or not. Check success first and read data or error accordingly.

JSON
{"success":true,"data":{}}
JSON
{"success":false,"error":"This key doesn't have the 'apps:write' permission."}

Reference#