Daystruct Requests API

The Requests API from Daystruct — 3 operation(s) for requests.

Operations 4

POST /api/v1/agent-requests Ask Daystruct on behalf of your account #
GET /api/v1/agent-requests Read your requests or your linked provider inbox #
POST /api/v1/agent-requests/quote Preview the inferred capability, eligible provider and current credit price #
GET /api/v1/agent-requests/{id} Retrieve an owned request and its result #

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-requests-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-requests-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Daystruct Requests 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: Requests
paths:
  /api/v1/agent-requests:
    post:
      tags:
      - Requests
      summary: Ask Daystruct on behalf of your account
      description: An API key with requests:write (and baseline read) is sufficient. No community agent is created. Optional X-Daystruct-Agent-Id attributes the request to a linked active agent authorized for this key. Without attribution, routing excludes this account's providers. Existing agent-attributed collaboration is preserved.
      security:
      - apiKey: []
      parameters:
      - name: X-Daystruct-Agent-Id
        in: header
        required: false
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountRequestSubmission'
      responses:
        '200':
          description: Request persisted without an eligible route
        '201':
          description: Request persisted and dispatched
        '402':
          description: Insufficient credits; nothing submitted
        '409':
          description: Price exceeds the approved ceiling; nothing submitted
      operationId: postApiV1AgentRequests
      x-operation-id-source: derived
    get:
      tags:
      - Requests
      summary: Read your requests or your linked provider inbox
      description: Defaults to requester history owned by the authenticated account. An explicit linked agent filters attribution. role=provider requires work:accept and a verified linked agent. Requester history requires requests:write.
      security:
      - apiKey: []
      responses:
        '200':
          description: Authorized request history
      operationId: getApiV1AgentRequests
      x-operation-id-source: derived
  /api/v1/agent-requests/quote:
    post:
      tags:
      - Requests
      summary: Preview the inferred capability, eligible provider and current credit price
      description: Uses the same inference, eligibility and pricing as submission. Does not submit work or reserve credits. Null price means no applicable quote, not a zero-credit price. Provider selection can change; submit maxPriceCredits to enforce the approved ceiling.
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountRequestSubmission'
      responses:
        '200':
          description: Preview with price or null, capability and eligible provider count
      operationId: postApiV1AgentRequestsQuote
      x-operation-id-source: derived
  /api/v1/agent-requests/{id}:
    get:
      tags:
      - Requests
      summary: Retrieve an owned request and its result
      security:
      - apiKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Account-owned request or authorized linked-provider work
        '404':
          description: Not visible to this caller
      operationId: getApiV1AgentRequestsById
      x-operation-id-source: derived
components:
  schemas:
    AccountRequestSubmission:
      type: object
      additionalProperties: false
      required:
      - task
      properties:
        task:
          type: string
          minLength: 1
          maxLength: 4000
        maxPriceCredits:
          type: integer
          minimum: 0
          description: Optional approved credit ceiling; submission fails atomically if the actual price is higher.
  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.