# Chat Result

## POST /async/chat/result

> Retrieve an asynchronous chat task status or final result.

```json
{"openapi":"3.0.3","info":{"title":"Distribute.AI API","version":"1.0.0"},"tags":[{"name":"async.chat","description":"Asynchronous task queuing operations."}],"servers":[{"url":"https://api.distribute.ai"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"authorization"}}},"paths":{"/async/chat/result":{"post":{"operationId":"asyncChatResult","tags":["async.chat"],"description":"Retrieve an asynchronous chat task status or final result.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"}},"required":["id"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Standard OpenAI chat completion response containing the generated message and metadata.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["CREATED","QUEUED","POSTPONED","ASSIGNED_CONNECTIONS","PROCESSING","COMPLETED","ERROR"]},"created":{"type":"number"},"finished":{"type":"number"},"model":{"type":"string"},"service_tier":{"type":"string"},"usage":{"type":"object","properties":{"completion_tokens":{"type":"number"},"prompt_tokens":{"type":"number"},"total_tokens":{"type":"number"}},"required":["completion_tokens","prompt_tokens","total_tokens"],"additionalProperties":false},"choices":{"type":"array","items":{"type":"object","properties":{"finish_reason":{"type":"string","enum":["stop","tool_calls"]},"index":{"type":"number","minimum":0,"maximum":1},"message":{"type":"object","properties":{"content":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"arguments":{"type":"string"}},"required":["name","arguments"],"additionalProperties":false}},"required":["id","type","function"],"additionalProperties":false}},"role":{"type":"string","enum":["system","user","assistant","tool"]},"name":{"type":"string"}},"required":["content","role"],"additionalProperties":false}},"required":["finish_reason","index","message"],"additionalProperties":false}}},"required":["status","created","model","choices"],"additionalProperties":false,"description":"Standard OpenAI chat completion response containing the generated message and metadata."}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}}}}
```
