docs
Account

Get the current workspace

GET
/v1/me

Returns the workspace and API key making the request, plus your chip balance. Free.

Authorization

bearerAuth
headerAuthorizationBearer <API key>

Create a key in the app under Developers. Keys start with dcd_live_.

Response Body

Success.

application/json
  1. response

Who you are and how many chips you have.

workspace*

The workspace this API key belongs to.

api_key*

The API key making this request.

balance*integer

Chips available to spend right now.

Range0 <= value <= 9007199254740991
request_id*string

Id of the request that produced this response. A replayed idempotent response keeps the original id.

Example Request
curl -X GET 'https://api.diced.si/v1/me' \  -H 'Authorization: Bearer dcd_live_your_key'
Example Response
{  "workspace": {    "id": "string",    "name": "string",    "plan": "none"  },  "api_key": {    "id": "string",    "name": "string",    "prefix": "string"  },  "balance": 0,  "request_id": "string"}