Get account details

GET /v2/account

Retrieves basic information about the authenticated account/organization

Responses

  • 200 application/json

    Account details retrieved successfully

    Hide response attributes Show response attributes object
    • orgId string Required

      Unique identifier for the organization/account

    • title string Required

      Name of the organization/account

  • 403 application/json

    Authentication failed or missing token

    Hide response attribute Show response attribute object
    • error string
  • 404 application/json

    Account not found

    Hide response attribute Show response attribute object
    • error string
  • 429 application/json

    Rate limit exceeded

    Hide headers attributes Show headers attributes
    • x-rate-limit-counter integer

      Current request count

    • x-rate-limit-maximum integer

      Maximum allowed requests

    Hide response attribute Show response attribute object
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • error string
    • errorId string
GET /v2/account
curl \
 --request GET 'https://api.storydoc.com/v2/account' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "orgId": "60d5eca77a2d1a001c4d9f7e",
  "title": "ACME Corporation"
}
Response examples (403)
{
  "error": "Missing authorization token"
}
Response examples (404)
{
  "error": "Account not found."
}
Response examples (429)
# Headers
x-rate-limit-counter: 42
x-rate-limit-maximum: 42

# Payload
{
  "error": "Too many requests"
}
Response examples (500)
{
  "error": "Error occured",
  "errorId": "550e8400-e29b-41d4-a716-446655440000"
}