Skip to main content
POST
/
v1
/
agents
/
generations
Generate Agent
curl --request POST \
  --url https://sdk.nimbleway.com/v1/agents/generations \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "I want an agent for books.toscrape.com category pages",
  "agent_name": "books_toscrape_categories_nkjansdkj",
  "url": "books.toscrape.com",
  "input_schema": {
    "type": "object",
    "properties": {
      "category": {
        "type": "string"
      }
    }
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string"
      },
      "price": {
        "type": "string"
      },
      "url": {
        "type": "string"
      },
      "availability": {
        "type": "string"
      }
    }
  }
}
'
{
  "id": "86441962-c8f5-4c24-b271-ee877d2dd865",
  "status": "queued",
  "agent_name": "books_toscrape_categories_nkjansdkj_2026_03_24_zco2isqi",
  "source_version_id": "c51d09fc-c8f2-4b3a-a9bc-eaab88316217",
  "created_at": "2026-03-24T19:19:39.300002+00:00"
}

Body

application/json
prompt
string
required

The prompt to use for the agent generation

agent_name
string
required

The name of the agent to generate

url
string
required

The URL to use for the agent generation

Example:

"https://www.amazon.com/s?k=laptop"

metadata
AgentVersionMetadata · object

The metadata of the agent version

input_schema
Input Schema · object

The input schema for the agent generation

Example:
{
"type": "object",
"properties": { "category": { "type": "string" } }
}
output_schema
Output Schema · object

The output schema for the agent generation

Example:
{
"type": "object",
"properties": { "name": { "type": "string" } }
}

Response

Successful Response

id
string<uuid>
required

The id of the agent generation

status
string
required

The status of the agent generation

agent_name
string

The name of the agent

version_id
string<uuid>

The version id of the agent

summary
string | null

The summary of the agent generation

error
string | null

The error of the agent generation