aurask/api/requests/aurask-api.http

87 lines
1.7 KiB
HTTP

### Health
GET http://127.0.0.1:8080/health
### Plans
GET http://127.0.0.1:8080/plans
### Demo bootstrap
POST http://127.0.0.1:8080/demo/bootstrap
Content-Type: application/json
{
"tenant_name": "Aurask Demo",
"email": "owner@example.com"
}
### Set API key after bootstrap
@api_key = ak_replace_me
### Quota
GET http://127.0.0.1:8080/quota
Authorization: Bearer {{api_key}}
### Workflow templates
GET http://127.0.0.1:8080/workflow-templates
Authorization: Bearer {{api_key}}
### Create workspace
POST http://127.0.0.1:8080/workspaces
Authorization: Bearer {{api_key}}
Content-Type: application/json
{
"name": "Support KB"
}
### Upload document metadata
POST http://127.0.0.1:8080/documents
Authorization: Bearer {{api_key}}
Content-Type: application/json
{
"workspace_id": "ws_replace_me",
"filename": "support-guide.pdf",
"size_bytes": 1048576,
"content_type": "application/pdf",
"content_preview": "Support guide hash input"
}
### Run workflow
POST http://127.0.0.1:8080/workflow-runs
Authorization: Bearer {{api_key}}
Content-Type: application/json
{
"template_id": "tpl_knowledge_qa",
"workspace_id": "ws_replace_me",
"inputs": {
"question": "How can Aurask help my support team?"
}
}
### Create TBU order
POST http://127.0.0.1:8080/orders
Authorization: Bearer {{api_key}}
Content-Type: application/json
{
"product_code": "tbu_1000",
"quantity": 1
}
### Match USDT-TRC20 payment
POST http://127.0.0.1:8080/payments/match
Authorization: Bearer {{api_key}}
Content-Type: application/json
{
"order_id": "order_replace_me",
"tx_hash": "tron_tx_hash_replace_me",
"amount_usdt": 21.87,
"confirmations": 20
}
### Admin bridge status
GET http://127.0.0.1:8080/admin/bridge-status
Authorization: Bearer {{api_key}}