File size: 1,907 Bytes
490ec84 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
openapi: 3.0.3
info:
title: Agentic Terraforming API
description: REST API for agent lifecycle, system tools, integrations, and sensory control
version: 1.1.0
contact:
name: API Support
email: devops@agentic.terra
servers:
- url: http://localhost:7860/api
description: Development server
- url: https://api.agentic.terra/v1
description: Production server
paths:
/agent/upload-spreadsheet:
post:
tags: [Agent Control]
summary: Upload spreadsheet for trait processing
security:
- OAuthToken: []
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
description: CSV/XLSX file with agent traits
responses:
'202':
description: Upload accepted
content:
application/json:
schema:
$ref: '#/components/schemas/JobTicket'
'401':
$ref: '#/components/responses/Unauthorized'
components:
securitySchemes:
OAuthToken:
type: http
scheme: bearer
bearerFormat: JWT
ApiKey:
type: apiKey
in: header
name: X-API-KEY
schemas:
JobTicket:
type: object
properties:
job_id:
type: string
format: uuid
status_url:
type: string
format: uri
description: URL to poll for job status
required: [job_id]
responses:
Unauthorized:
description: Missing or invalid authentication
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: "Invalid OAuth token"
security:
- OAuthToken: []
- ApiKey: [] |