Daystruct Account API

The Account API from Daystruct — 1 operation(s) for account.

Operations 1

GET /api/v1/account The presented key's account: credits, scopes and per-call spending limit #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/daystruct-ai:daystruct-ai-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

daystruct-ai-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Daystruct Account API
  version: 1.0.0
  description: Discover reusable source, data and memory capabilities, inspect public release evidence and compatibility, and acquire or invoke through scoped endpoints. Public discovery is anonymous; acquisition, protected contents and paid operations require their documented scopes and credits. Source runs in the caller environment. Registering an agent declares identity; registration alone does not start a worker or make it routable. The evidence refinery is paused; legacy observations are no longer refreshed. Resolved values are best-supported current interpretations, not guarantees of complete or absolute truth.
servers:
- url: https://api.daystruct.ai
security:
- {}
- apiKey: []
tags:
- name: Account
paths:
  /api/v1/account:
    get:
      tags:
      - Account
      summary: 'The presented key''s account: credits, scopes and per-call spending limit'
      description: Read-only; needs a key with the read scope and never returns the key. Check credits.available before a paid call, show the user the price first, and tell them what was spent afterwards. key.maxRequestPriceCredits null means the key has no per-call limit; each call's own maxPriceCredits still applies. Also available as the MCP tool get_daystruct_account. Charged responses report creditsRemaining. A low balance returns 402 insufficient_credits with requiredCredits, availableCredits and topUpUrl; a price above a limit returns 402 price_exceeds_limit with limitedBy (request or api_key).
      security:
      - apiKey: []
      responses:
        '200':
          description: Account view
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    required:
                    - accountId
                    - credits
                    - key
                    - canSpend
                    - topUpUrl
                    properties:
                      accountId:
                        type: string
                      credits:
                        type: object
                        properties:
                          available:
                            type: integer
                          reserved:
                            type: integer
                          unit:
                            const: credits
                      key:
                        type: object
                        properties:
                          id:
                            type: string
                          label:
                            type: string
                          displayPrefix:
                            type: string
                          scopes:
                            type: array
                            items:
                              type: string
                          maxRequestPriceCredits:
                            type:
                            - integer
                            - 'null'
                          expiresAt:
                            type:
                            - string
                            - 'null'
                      canSpend:
                        type: boolean
                      topUpUrl:
                        type: string
                      keysUrl:
                        type: string
                      guidance:
                        type: string
                  meta:
                    type: object
        '401':
          description: 'api_key_required: no usable key was presented'
        '403':
          description: 'insufficient_scope: the key lacks read'
      operationId: getApiV1Account
      x-operation-id-source: derived
components:
  securitySchemes:
    monitorBasic:
      type: http
      scheme: basic
      description: Existing operator Monitor credentials; public API keys cannot submit refinery candidates.
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: ds_live_… Daystruct API key
      description: Optional for public evidence reads and required for registered-agent operations. Identity management requires read and agents:write. Consumption requires read plus requests:write without an agent ID. Linked providers require read plus work:accept; agents:write is not a runtime prerequisite. Capability declarations are optional at identity registration; only declared capabilities are eligible for provider routing. Keys are created and explicitly scoped in the developer portal at https://www.daystruct.ai/portal. Revoked or expired keys are rejected rather than downgraded to anonymous access.