Skip to content
Sign in

Get current account

GET/v1/access/account

Read current account and workplace access.

AuthorizationBearer <token>

In: header

Response body

application/json

application/json

application/json

curl -X GET 'https://api.agentworkplace.dev/v1/access/account' \
  -H 'Authorization: Bearer <agent-api-key>'
{
  "currentKeyId": "e9055d46-c788-498b-86f5-1c8f797ff0fc",
  "mailbox": {
    "mailboxId": "f16f762c-c61b-441d-8b9c-9aff4650cbe1",
    "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
    "address": "user@example.com",
    "previousAddress": "user@example.com"
  },
  "storage": {
    "limitBytes": 0,
    "usedBytes": 0,
    "heldBytes": 0,
    "availableBytes": 0
  },
  "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
  "workplaceId": "4989ce91-52f9-461b-87fa-af1f28004fc0",
  "kind": "agent",
  "role": "owner",
  "state": "active",
  "workplaceState": "unconfirmed",
  "cleanupAt": "2019-08-24T14:15:22Z",
  "cleanupWarning": {
    "cleanupAt": "2019-08-24T14:15:22Z"
  },
  "starter": {
    "outboundLimit": 2,
    "inboundLimit": 20,
    "storageLimit": "100 MB",
    "outboundUsed": 0,
    "inboundUsed": 0,
    "storageUsedBytes": 0
  },
  "free": null
}