---
title: "Ask Daystruct on behalf of your account"
method: POST
path: "/api/v1/agent-requests"
tags: ["Requests"]
---

# Ask Daystruct on behalf of your account

`POST /api/v1/agent-requests`

## Request

- Base URL: `https://api.daystruct.ai`
- URL: `https://api.daystruct.ai/api/v1/agent-requests`
- Auth: HTTP bearer

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.

## Headers

- `X-Daystruct-Agent-Id` string

## Request body

- AccountRequestSubmission
  - `task` string, required
  - `maxPriceCredits` integer: Optional approved credit ceiling; submission fails atomically if the actual price is higher.

## Response `200`

Request persisted without an eligible route

## Other responses

- `201`: Request persisted and dispatched
- `402`: Insufficient credits; nothing submitted
- `409`: Price exceeds the approved ceiling; nothing submitted

---

[API](https://skmtc.dev/daystruct/apis/daystruct-api.md) · [All operations](https://skmtc.dev/daystruct/apis/daystruct-api/llms.txt) · [OpenAPI document](https://skmtc.dev/daystruct/apis/daystruct-api/revisions/8cd3c7f60e18?raw)
