# Poll chat stream result GET /v1/a/adapters/llm/chat/stream/{id} Select code sample ``` const url = 'https://example.com/v1/a/adapters/llm/chat/stream/example?parts_behavior=on_finish_get_all'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ``` curl --request GET \ --url 'https://example.com/v1/a/adapters/llm/chat/stream/example?parts_behavior=on_finish_get_all' \ --header 'Authorization: Bearer ' ``` - /v1/a/adapters/llm/chat/stream/{id} ## Permission This operation needs the permission [`llm:chat:manage`](https://docs.aiva.apifonica.com/concepts/roles-and-permissions/#llm-chat-manage). ## Authorizations - **[bearerAuth](https://docs.aiva.apifonica.com/api/account/#bearerauth)** ## Parameters ### Path Parameters **id** required string Chat stream id. ### Query Parameters **parts\_behavior** string Allowed values: on\_finish\_get\_all on\_finish\_get\_sentence ## Responses ### 200 Stream completed and fully read Media typeapplication/json object **type** string **status** required string Allowed values: in\_progress error finished completed **error** string **content** object **part** string **total** string **function\_call** Deprecated: use tool\_calls instead. object **name** string **arguments** JSON-encoded argument string. string **tool\_calls** Array\ object **id** required string **type** required string **function** required The function name and JSON-encoded arguments carried by a tool call. object **name** string **arguments** string ##### Example ``` { "status": "in_progress" } ``` ### 206 Stream in progress or finished but not fully read Media typeapplication/json object **type** string **status** required string Allowed values: in\_progress error finished completed **error** string **content** object **part** string **total** string **function\_call** Deprecated: use tool\_calls instead. object **name** string **arguments** JSON-encoded argument string. string **tool\_calls** Array\ object **id** required string **type** required string **function** required The function name and JSON-encoded arguments carried by a tool call. object **name** string **arguments** string ##### Example ``` { "status": "in_progress" } ``` ### 400 Invalid request body or parameters Media typeapplication/json Canonical structured error emitted by the chat completion, chat stream and embeddings handlers (the shared `errorResponse` helper). `code` is an application error code (0 when unset); `status` mirrors the HTTP status. object **name** required string **message** required string **code** required integer **status** required integer ##### Examplegenerated ``` { "name": "example", "message": "example", "code": 1, "status": 1 } ``` ### 401 Unauthorized ### 403 Forbidden ### 404 Resource does not exist Media typeapplication/json Canonical structured error emitted by the chat completion, chat stream and embeddings handlers (the shared `errorResponse` helper). `code` is an application error code (0 when unset); `status` mirrors the HTTP status. object **name** required string **message** required string **code** required integer **status** required integer ##### Examplegenerated ``` { "name": "example", "message": "example", "code": 1, "status": 1 } ``` ### 500 Internal server error Media typeapplication/json Canonical structured error emitted by the chat completion, chat stream and embeddings handlers (the shared `errorResponse` helper). `code` is an application error code (0 when unset); `status` mirrors the HTTP status. object **name** required string **message** required string **code** required integer **status** required integer ##### Examplegenerated ``` { "name": "example", "message": "example", "code": 1, "status": 1 } ``` ### 502 Bad gateway (upstream adapter error)