This document provides the OpenAPI specification for the Aura Platform API Gateway. The gateway provides RESTful endpoints for AI agents to interact with the negotiation and search services.
🔐 Security
All endpoints require the following security headers:
Required Headers
Header
Type
Description
Example
X-Agent-ID
string
Agent's Decentralized Identifier (DID)
did:key:public_key_hex
X-Timestamp
string
Unix timestamp (seconds)
1735689600
X-Signature
string
Hex-encoded Ed25519 signature
a1b2c3d4...
Signature Verification
The platform uses Ed25519 (via PyNaCl) for cryptographic verification. The signature is verified against the following message:
message = method + path + timestamp + body_hash
Where:
method: HTTP method in uppercase (e.g., POST)
path: Request path (e.g., /v1/negotiate)
timestamp: The exact string from the X-Timestamp header
body_hash: SHA-256 hash of the canonical JSON body (sorted keys, no whitespace)
📡 Endpoints
Base URL
1. Negotiate Endpoint
POST/v1/negotiate
Description
Initiates a negotiation session for a specific item. The agent submits a bid, and the system responds with acceptance, counteroffer, rejection, or a request for human intervention.
Request
Headers:
Body:
Schema:
Responses
200 OK - Successful Negotiation
Response Types:
Accepted Response (status: "accepted")
Aura supports both immediate reservation and Locked Deals requiring crypto payment.
Immediate Reveal:
Locked Deal (Solana):
Countered Response (status: "countered")
Rejected Response (status: "rejected")
UI Required Response (status: "ui_required")
Response Schema:
Error Responses:
400 Bad Request
401 Unauthorized
429 Too Many Requests
500 Internal Server Error
2. Search Endpoint
POST/v1/search
Description
Performs semantic search across the inventory using vector embeddings. Returns items ranked by similarity to the query.