Skip to content

HTTP reference

The agent-data HTTP interfaces expose catalog reads and API data requests to your application. Marketplace requests use https://agent-data.motie.dev.

The get data guide shows one complete search, contract read, and data call.

Supply your API key through AGENT_DATA_API_KEY. The Bash and zsh examples send it in the Authorization: Bearer header. See API-key setup.

AddressPurpose
https://agent-data.motie.devCatalog, contract, account, notification, and build requests.
https://api.agent-data.dev/<handle>Data requests for the API identified by that handle. Use the contract’s api.base_url.

Read the base URL and operation path from the current contract. For example, YouTube’s base URL is https://api.agent-data.dev/youtube-com.

Append /v1/search-videos once for its search operation. Keep the handle in the base URL.

Method and pathInputsResult
GET /api/v2/marketplace/searchRequired q. Optional limit, direct_offset, related_offset, offset, category, and tags.Direct and related API results.
GET /api/v1/marketplace/listingsOptional limit, offset, category, and tags.Listings and pagination.
GET /api/v1/marketplace/listings/{api-reference}/docsThe API handle in the path.The API contract.
GET /api/v1/accountOptional full=true.Account details.

This contract request uses the YouTube handle, youtube-com.

Terminal window
curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $AGENT_DATA_API_KEY" \
'https://agent-data.motie.dev/api/v1/marketplace/listings/youtube-com/docs'

Use the returned api.base_url, route method, route path, and input definitions for the data request.

Contract locationAction
pathReplace the named placeholder with the URL-encoded value.
queryAdd query-string parameters with curl’s --get --data-urlencode.
headerSend the named HTTP header.
request_bodySend the body with the media type from the contract.

For an application/json body, send Content-Type: application/json. Preserve the contract’s JSON types. Numbers such as 1 differ from strings such as "1".

Send the body value itself, not the CLI’s path, query, header, or body input object. See typed inputs for real examples.

Check the HTTP status, content type, and body. curl --fail-with-body --silent --show-error retains an error response body while returning a nonzero exit status.

Each API defines its response schema. There is no universal data-response object for all catalog APIs.

Retain the returned error code, message, request identifier, and timestamp. Follow troubleshooting for the correction.

HTTP data requests have no preview option. Use the CLI preview to check construction before a data call.

RequestEffect
POST /api/v1/notifySend JSON subject and body to your account email address.
Build submissionRequest an API for a website.
Extension submissionRequest an improvement to an existing API.

Use the notification guide to preview a message with the CLI. A successful build submission is separate from publication.

Use the CLI for terminal workflows and request previews. Use MCP for client tools.