> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs-parschat.parstechai.com/api-reference/conversations/set-typing/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-parschat.parstechai.com/_mcp/server. # Show a typing indicator POST https://api-chat.parstechai.com/v1/conversations/{conversation_id}/typing Content-Type: application/json Tells the end customer that one of your operators is typing. Call it when an agent starts typing in your panel. The indicator expires on its own after a few seconds, so send it again while they keep typing rather than sending a stop. Reference: https://docs-parschat.parstechai.com/api-reference/conversations/set-typing ## Authentication - `Authorization` header (bearer token, required) — Your API key, issued by ParsChat sales. One key per account, spanning every robot you own. Send it as `Authorization: Bearer pk_live_…`. ## Request ### Path parameters - `conversation_id` (string, required) — The conversation's id, as it arrives on every webhook event. ### Body (application/json) This endpoint expects an object. - `is_typing` (boolean, optional, default: true) — `true` to show the indicator, `false` to clear it early. ## Response ### 204 Accepted. No body. ## Errors ### 400 Bad Request Error The request itself is malformed: a parameter is missing, unparseable, or out of range. Unlike 422, the request never reached validation of its contents. - `error` (ErrorError, optional) ### 401 Unauthorized Error The key is missing, wrong, revoked, or past its expiry date. All four answer `invalid_key`: telling an expired key from an unknown one would confirm to whoever holds a leaked key that it was once real. - `error` (ErrorError, optional) ### 403 Forbidden Error The call is understood but not permitted: a missing role, a lapsed plan, or exhausted capacity. - `error` (ErrorError, optional) ### 404 Not Found Error No such resource, or it belongs to another partner. We return 404 rather than 403 here, because a 403 would confirm the id exists. - `error` (ErrorError, optional) ### 429 Too Many Requests Error You are calling the API too fast. `details` names the limit you are held to. This never means an automated reply to an end customer was discarded: those are queued, not dropped. - `error` (ErrorError, optional) ### 500 Internal Server Error Something failed on our side. Retry with backoff, and quote `request_id` if it persists. - `error` (ErrorError, optional) ### 503 Service Unavailable Error A service we depend on (a channel provider, or our AI service) is unavailable. Retry with backoff. - `error` (ErrorError, optional) ## Types ### ErrorError - `code` (string, optional) — Stable machine-readable code. Branch on this, not on the message. - `message` (string, optional) — Human-readable explanation. Wording may change. - `request_id` (string, optional) — Log this. It is what lets support find your exact request. - `details` (map from string to any, optional) — Machine-readable context for the code. On `capacity_exhausted` it carries `occupied`, `requested` and `capacity`; on `rate_limited`, `limit_per_minute` and `window_seconds`. ## Examples ### Operator started typing **Request** ```json { "is_typing": true } ``` **SDK Code** ```python Operator started typing import requests url = "https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing" payload = { "is_typing": True } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Operator started typing const url = 'https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"is_typing":true}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Operator started typing package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing" payload := strings.NewReader("{\n \"is_typing\": true\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Operator started typing require 'uri' require 'net/http' url = URI("https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"is_typing\": true\n}" response = http.request(request) puts response.read_body ``` ```java Operator started typing import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"is_typing\": true\n}") .asString(); ``` ```php Operator started typing request('POST', 'https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing', [ 'body' => '{ "is_typing": true }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Operator started typing using RestSharp; var client = new RestClient("https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"is_typing\": true\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Operator started typing import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = ["is_typing": true] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Clear it early **Request** ```json { "is_typing": false } ``` **SDK Code** ```python Clear it early import requests url = "https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing" payload = { "is_typing": False } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Clear it early const url = 'https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"is_typing":false}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Clear it early package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing" payload := strings.NewReader("{\n \"is_typing\": false\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Clear it early require 'uri' require 'net/http' url = URI("https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"is_typing\": false\n}" response = http.request(request) puts response.read_body ``` ```java Clear it early import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"is_typing\": false\n}") .asString(); ``` ```php Clear it early request('POST', 'https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing', [ 'body' => '{ "is_typing": false }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Clear it early using RestSharp; var client = new RestClient("https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"is_typing\": false\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Clear it early import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = ["is_typing": false] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api-chat.parstechai.com/v1/conversations/cnv_4dR8nW/typing")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```