> For the complete documentation index, see [llms.txt](https://docs.concurrence.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.concurrence.com/api-reference/readme/platform/services.md).

# Services

## List services

> List services in a workspace with pagination. Filter by \`agent\_id\` or \`context\_graph\_id\` to list the services on an agent or context graph, or by \`allow\_unverified\_integration\_results\` to list the services that have that bypass on. Requires \`Service.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SearchString":{"type":"string","maxLength":200,"minLength":1},"ServiceListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ServiceResponse"},"type":"array","title":"Items"},"has_more":{"type":"boolean","title":"Has More"},"continuation_token":{"title":"Continuation Token"}},"type":"object","required":["items","has_more"],"title":"ServiceListResponse"},"ServiceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id","description":"The context graph the service binds. Null on a service that binds none: it runs direct programs only."},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"context_graph_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Graph Name"},"keyterms":{"items":{"type":"string"},"type":"array","title":"Keyterms"},"is_active":{"type":"boolean","title":"Is Active"},"version_sets":{"additionalProperties":{"$ref":"#/components/schemas/VersionSet-Output"},"type":"object","title":"Version Sets"},"tags":{"items":{"$ref":"#/components/schemas/ServiceTag"},"type":"array","title":"Tags"},"tool_capacity":{"type":"integer","title":"Tool Capacity"},"channel_type":{"type":"string","enum":["voice","text"],"title":"Channel Type","default":"voice"},"environment":{"type":"string","enum":["sandbox","production"],"title":"Environment","default":"production"},"demo_mode":{"type":"boolean","title":"Demo Mode","description":"Voice calls on this service open with only the recording notice, without the AI disclosure. For demos only,\nnever for a service that takes real callers.","default":false},"platform_caller_verification":{"type":"boolean","title":"Platform Caller Verification","description":"Whether the platform verifies a caller who may match a patient record by full name and date of\nbirth. Off, the agent never asks a caller to verify, and every platform tool that reads a patient\nrecord refuses. The service's integration tools run either way, unless one of them verifies its\ncallers (`caller_verification_endpoint_id`).","default":true},"caller_verification_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Caller Verification Endpoint Id","description":"The integration endpoint that verifies this service's callers, or null when none does."},"allow_unverified_integration_results":{"type":"boolean","title":"Allow Unverified Integration Results","description":"A dangerous bypass, off by default. On, results from the service's integration endpoints, reads and\nwrites, never count as a patient record for the output checker's unverified-caller check\n(`output_checks.phi_unverified`, which runs only on a service that sets it to `cut`), so the agent may read\nthem back to any caller, verified or not. Writes are still held to everything else, the platform's own\npatient reads still refuse until the caller verifies, and data queries and skills still count. Never on\nbeside `caller_verification_endpoint_id`. Every change is audited.","default":false},"voice_config":{"anyOf":[{"$ref":"#/components/schemas/ServiceVoiceConfig-Output"},{"type":"null"}]},"accepted_context":{"items":{"$ref":"#/components/schemas/ContextKeySpec"},"type":"array","title":"Accepted Context"},"crisis_call_911_reply":{"anyOf":[{"$ref":"#/components/schemas/CrisisCall911Reply"},{"type":"null"}]},"contact_lines":{"items":{"$ref":"#/components/schemas/ContactLine"},"type":"array","maxItems":50,"title":"Contact Lines","description":"Declared direct contact lines. Public emergency and N11 short codes are refused."},"medical_emergency_ending":{"type":"string","enum":["stay_on_line","end_after_script"],"title":"Medical Emergency Ending","description":"How a voice call ends after a medical emergency's script: ``stay_on_line`` (the default) or\n``end_after_script``, which plays the authored closing line and then ends the call. A self-harm or\ncrisis statement keeps the call open in either.","default":"stay_on_line"},"output_checks":{"$ref":"#/components/schemas/ServiceOutputChecks","description":"The checks the service's calls run: its own block over the workspace defaults. Where each value comes from:\n`GET /v1/{workspace_id}/services/{service_id}/safety`."},"emergency_floor":{"$ref":"#/components/schemas/ServiceEmergencyFloor","description":"How the floor acts on the service's text conversations: its own block over the workspace defaults. Where each\nvalue comes from: `GET /v1/{workspace_id}/services/{service_id}/safety`."},"conversation_audit":{"$ref":"#/components/schemas/ConversationAuditSettings","description":"The post-call transcript quality audit, off unless the service turns it on."},"declared_languages":{"anyOf":[{"items":{"type":"string","enum":["en","es","ar","fr","de","pt","zh","ja","ko"]},"type":"array","maxItems":9,"minItems":1},{"type":"null"}],"title":"Declared Languages","description":"The languages this service serves, as ISO 639-1 codes. None: none declared."},"effective_harnesses":{"anyOf":[{"items":{"$ref":"#/components/schemas/EffectiveHarness"},"type":"array"},{"type":"null"}],"title":"Effective Harnesses","description":"The release each voice and text harness that has a platform default runs on the service's calls: its pin, else\nthe harness default. Set by the single-service GET, left out of lists. `GET .../services/{service_id}/harnesses`\nlists only the harnesses the service runs."},"is_system":{"type":"boolean","title":"Is System","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","description","agent_id","context_graph_id","keyterms","is_active","version_sets","tags","tool_capacity","created_at","updated_at"],"title":"ServiceResponse"},"VersionSet-Output":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"LLMConfig":{"properties":{"llm_name":{"type":"string","title":"Llm Name"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"experience_controls":{"anyOf":[{"$ref":"#/components/schemas/LLMExperienceControls"},{"type":"null"}]}},"type":"object","required":["llm_name"],"title":"LLMConfig"},"LLMExperienceControls":{"properties":{"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Top P"}},"additionalProperties":false,"type":"object","title":"LLMExperienceControls","description":"Typed model-tuning controls for a version set's LLM preference.\n\n``params`` stays available as a provider-specific escape hatch. These three fields are the ones deployments\nuse. Token budgets are left out on purpose, so a version set cannot cut a response short by accident."},"VersionSetBehaviorPin":{"properties":{"set_id":{"type":"string","format":"uuid","title":"Set Id","description":"The library set. It belongs to the service's workspace and isn't archived."},"version":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Version","description":"The version of the set the service runs. A later version of the set changes nothing until the pin moves."},"enabled":{"type":"boolean","title":"Enabled","description":"A disabled pin stays on the version set and is never offered.","default":true},"states":{"items":{"$ref":"#/components/schemas/NameString"},"type":"array","maxItems":200,"title":"States","description":"The action and data collection states it applies in. Empty: every one."}},"additionalProperties":false,"type":"object","required":["set_id","version"],"title":"VersionSetBehaviorPin","description":"One library set a version set uses, at one version."},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"ServiceTag":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["key"],"title":"ServiceTag"},"ServiceVoiceConfig-Output":{"properties":{"silence_policy":{"$ref":"#/components/schemas/SilencePolicy"},"max_buffer_delay_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Buffer Delay Ms"},"eager_eot_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eager Eot Threshold"},"eot_timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eot Timeout Ms"},"filler_style":{"type":"string","enum":["backchannel","phrase","silent"],"title":"Filler Style","default":"backchannel"},"filler_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filler Vocabulary"},"backchannel_delay_ms":{"type":"integer","title":"Backchannel Delay Ms","default":400},"max_response_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Sentences"},"max_response_words":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Words"},"barge_in_min_speech_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Min Speech S"},"barge_in_cooldown_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Cooldown S"},"held_turn_policy":{"type":"string","enum":["always","judged","never"],"title":"Held Turn Policy","description":"What a realtime voice call does with a caller turn committed while the agent's own opening, the notice and the greeting, is still playing. always: the turn is answered once the opening ends. judged: the turn is answered only when it asks for something the opening did not cover, so a greeting, an acknowledgement or an echo of the opening is left unanswered, and a turn that cannot be judged is answered. never: the turn is not answered, and the caller's next turn is answered as usual. Every turn is still recorded and checked for a medical emergency, whatever the setting. It applies to a call the agent opens itself; a call that waits for the caller to speak first answers the first turn.","default":"always"},"min_tts_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Tts Speed"},"post_eot_pause_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Eot Pause Ms"},"transition_deadline_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transition Deadline Ms"},"progress_interval_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Interval Ms"},"empathy_hold_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Empathy Hold Ms"},"filler_cooldown_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filler Cooldown Ms"},"progress_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Progress Vocabulary"},"tts_provider":{"anyOf":[{"type":"string","enum":["cartesia","elevenlabs"]},{"type":"null"}],"title":"Tts Provider"},"tts_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tts Config"},"language_providers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LanguageProviderEntry"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Language Providers"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider"},"realtime_voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"type":"null"}],"title":"Realtime Voice","description":"Deprecated built-in OpenAI Realtime voice shortcut. Use realtime.voice instead; the two fields are mutually exclusive.","deprecated":true},"realtime":{"anyOf":[{"$ref":"#/components/schemas/RealtimeSessionConfig"},{"type":"null"}]},"eleven_realtime":{"anyOf":[{"$ref":"#/components/schemas/ElevenRealtimeSessionConfig"},{"type":"null"}]},"grok_voice":{"anyOf":[{"$ref":"#/components/schemas/GrokVoiceSessionConfig"},{"type":"null"}]},"gpt_live":{"anyOf":[{"$ref":"#/components/schemas/GptLiveSessionConfig"},{"type":"null"}]},"phonic":{"anyOf":[{"$ref":"#/components/schemas/PhonicSessionConfig"},{"type":"null"}]},"readiness_requires":{"anyOf":[{"items":{"type":"string","enum":["openai_realtime","decisions","warehouse"]},"type":"array","maxItems":10},{"type":"null"}],"title":"Readiness Requires"},"max_concurrent_calls":{"type":"integer","maximum":100,"minimum":1,"title":"Max Concurrent Calls","default":60},"max_calls_per_caller":{"type":"integer","maximum":100,"minimum":1,"title":"Max Calls Per Caller","default":2},"answer_hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"forwarding":{"anyOf":[{"$ref":"#/components/schemas/ServiceForwardingResponse"},{"type":"null"}]}},"type":"object","title":"ServiceVoiceConfig","description":"Per-service voice pipeline tuning. Overrides workspace/env defaults.\n\nEach field is optional — None means inherit from the layer above\n(workspace VoiceSettings → env vars → hardcoded defaults).\n\nA field is read only by the families whose ``reads`` list it (``platform_lib.config.voice_families.specs``); a save\naccepts the others and reports them as ignored."},"SilencePolicy":{"properties":{"max_closing_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Closing Attempts","default":2},"max_cap_warning_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Cap Warning Attempts","default":2},"cap_warning_retry_seconds":{"type":"number","maximum":60,"minimum":1,"title":"Cap Warning Retry Seconds","default":10}},"additionalProperties":false,"type":"object","title":"SilencePolicy","description":"Per-service delivery retries around the signed silence cadence."},"LanguageProviderEntry":{"properties":{"provider":{"type":"string","enum":["cartesia","elevenlabs"],"title":"Provider"},"config":{"additionalProperties":true,"type":"object","maxProperties":20,"title":"Config"}},"type":"object","required":["provider"],"title":"LanguageProviderEntry","description":"Per-language TTS provider configuration."},"RealtimeSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","enum":["gpt-realtime-2.1","gpt-realtime-2.1-mini"]},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"$ref":"#/components/schemas/RealtimeCustomVoice"},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.25},{"type":"null"}],"title":"Speed"},"noise_reduction":{"anyOf":[{"type":"string","enum":["near_field","far_field","off"]},{"type":"null"}],"title":"Noise Reduction","description":"Input noise reduction. Omit or set null to use the Platform default; set 'off' to disable it."},"noise_reduction_strength":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Noise Reduction Strength","description":"OpenAI audio.input.noise_reduction.strength. Higher values suppress more noise.","docs_url":"https://developers.openai.com/api/reference/resources/realtime/client-events"},"transcription":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTranscriptionConfig"},{"type":"null"}]},"turn_detection":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/RealtimeServerVadConfig"},{"$ref":"#/components/schemas/RealtimeSemanticVadConfig"}],"discriminator":{"propertyName":"type","mapping":{"semantic_vad":"#/components/schemas/RealtimeSemanticVadConfig","server_vad":"#/components/schemas/RealtimeServerVadConfig"}}},{"type":"null"}],"title":"Turn Detection"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"max_output_tokens":{"anyOf":[{"type":"integer","maximum":4096,"minimum":1},{"type":"string","const":"inf"},{"type":"null"}],"title":"Max Output Tokens"},"truncation":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTruncationConfig"},{"type":"null"}]},"required_tool_on_first_caller_turn":{"anyOf":[{"type":"string","maxLength":256,"minLength":1,"pattern":"^[A-Za-z_][A-Za-z0-9_.:-]*$"},{"type":"null"}],"title":"Required Tool On First Caller Turn","description":"Force one named function on the first caller-generated response, excluding the inbound greeting, then restore automatic tool choice. Runtime accepts this only for source_override='test' sessions and tools that the executor verifies are read-only or side-effect-free."}},"additionalProperties":false,"type":"object","title":"RealtimeSessionConfig","description":"Typed OpenAI Realtime session controls for a service."},"RealtimeCustomVoice":{"properties":{"id":{"type":"string","maxLength":256,"minLength":1,"pattern":"^voice_[A-Za-z0-9_-]+$","title":"Id"}},"additionalProperties":false,"type":"object","required":["id"],"title":"RealtimeCustomVoice","description":"Approved OpenAI custom voice reference."},"RealtimeTranscriptionConfig":{"properties":{"model":{"type":"string","const":"gpt-transcribe","title":"Model","default":"gpt-transcribe"},"language":{"anyOf":[{"type":"string","enum":["af","ar","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","es","et","fa","fi","fr","gl","gu","he","hi","hr","hu","hy","id","is","it","iw","ja","ka","kk","kn","ko","lt","lv","mi","mk","ml","mr","ms","nb","ne","nl","no","pl","pt","ro","ru","sk","sl","sr","sv","sw","ta","te","th","tl","tr","uk","ur","vi","zh","afr","amh","ara","aze","bel","ben","bos","bul","cat","ces","cmn","cym","dan","deu","ell","eng","est","fas","fil","fin","fra","gle","glg","guj","heb","hin","hrv","hun","hye","ind","isl","ita","jpn","kan","kat","kaz","kor","lav","lit","mal","mar","mkd","mon","mri","msa","mya","nep","nld","nor","pol","por","ron","rus","slk","slv","som","spa","srp","swa","swe","tam","tel","tgl","tha","tur","ukr","urd","vie","yue","zh-cn","zh-hk","zh-tw"]},{"type":"null"}],"title":"Language"},"prompt":{"anyOf":[{"type":"string","maxLength":1024,"minLength":1},{"type":"null"}],"title":"Prompt"},"keywords":{"anyOf":[{"items":{"type":"string","maxLength":256,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keywords","description":"Literal transcription hints. Unset, use the service keyterms.","docs_url":"https://developers.openai.com/api/docs/guides/transcription"}},"additionalProperties":false,"type":"object","title":"RealtimeTranscriptionConfig","description":"Asynchronous caller-audio transcription used for transcripts and observability."},"RealtimeServerVadConfig":{"properties":{"type":{"type":"string","const":"server_vad","title":"Type","default":"server_vad"},"threshold":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Threshold"},"prefix_padding_ms":{"anyOf":[{"type":"integer","maximum":5000,"minimum":0},{"type":"null"}],"title":"Prefix Padding Ms"},"silence_duration_ms":{"anyOf":[{"type":"integer","maximum":3000,"minimum":200},{"type":"null"}],"title":"Silence Duration Ms"}},"additionalProperties":false,"type":"object","title":"RealtimeServerVadConfig","description":"Volume-based turn detection controls."},"RealtimeSemanticVadConfig":{"properties":{"type":{"type":"string","const":"semantic_vad","title":"Type","default":"semantic_vad"},"eagerness":{"type":"string","enum":["auto","low","medium","high"],"title":"Eagerness","default":"auto"}},"additionalProperties":false,"type":"object","title":"RealtimeSemanticVadConfig","description":"Semantic turn detection controls."},"RealtimeTruncationConfig":{"properties":{"type":{"type":"string","enum":["auto","disabled","retention_ratio"],"title":"Type","description":"Use auto or retention_ratio. Legacy disabled values are readable but refused by voice sessions.","default":"auto","docs_url":"https://developers.openai.com/api/docs/guides/voice-latency-cost?api=realtime#truncation"},"retention_ratio":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Retention Ratio"},"post_instructions_tokens":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Post Instructions Tokens"}},"additionalProperties":false,"type":"object","title":"RealtimeTruncationConfig","description":"Conversation context truncation strategy."},"ElevenRealtimeSessionConfig":{"properties":{"voice":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Voice"},"model":{"anyOf":[{"type":"string","const":"eleven_realtime_v1_mini"},{"type":"null"}],"title":"Model"}},"additionalProperties":false,"type":"object","required":["voice"],"title":"ElevenRealtimeSessionConfig","description":"Eleven Realtime controls for a service: the ElevenLabs voice it speaks in, and the model."},"GrokVoiceSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"grok-voice-3.0"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["altair","ara","atlas","aurora","carina","castor","celeste","cosmo","eve","helios","helix","iris","kepler","leo","liora","lumen","luna","lux","naksh","orion","perseus","rex","rigel","sal","sirius","ursa","zagan","zenith"]},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.7},{"type":"null"}],"title":"Speed"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","high"]},{"type":"null"}],"title":"Reasoning Effort"},"keyterms":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keyterms","description":"Transcription hints. Unset, use the service keyterms. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"},"language_hint":{"anyOf":[{"type":"string","enum":["en","ar-EG","ar-SA","ar-AE","bn","zh","fr","de","hi","id","it","ja","ko","pt-BR","pt-PT","ru","es-MX","es-ES","tr","vi"]},{"type":"null"}],"title":"Language Hint"},"replace":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":100,"minLength":1},"propertyNames":{"maxLength":100,"minLength":1},"type":"object","maxProperties":100,"minProperties":1},{"type":"null"}],"title":"Replace","description":"Pronunciation replacements: a phrase the agent says mapped to how xAI speaks it. Matched case-insensitively on whole words, longest key first. Keys and values are stripped, and keys that differ only by case are refused. xAI changes the audio and not its transcript; the runtime applies the same map to the transcript before the output checks read it, so they judge what the caller hears. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"}},"additionalProperties":false,"type":"object","title":"GrokVoiceSessionConfig","description":"Grok Voice controls for a service. Every field is optional: the provider supplies the defaults."},"GptLiveSessionConfig":{"properties":{"model":{"type":"string","enum":["gpt-live-1","gpt-live-1.1-leopard-2-alpha"],"title":"Model","default":"gpt-live-1"},"voice":{"type":"string","enum":["alloy","ash","ballad","beacon","bossa","brise","cedar","cinder","coral","delta","echo","flitz","gleam","harema","juni","marin","meridian","nira","noeul","nuri","quartz","ripple","sage","shida","shimmer","sillage","stone","tempo","verse","vesper","willow"],"title":"Voice","default":"marin"}},"additionalProperties":false,"type":"object","title":"GptLiveSessionConfig","description":"Live startup settings. Language comes from the agent's instructions, not a protocol field."},"PhonicSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"phonic-1"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["sabrina","grant","sandeep","landon","shelby","mason","virginia","eleanor","gabrielle","paula","nolan","roberto","hikari","tomoya","eloise","jerome","daniela","juliana","valeria","eduardo","henri","kourtney","kaspar","mei","stella","karoline","amelia","william","joon","hana","mia","derek","divya","alice","karin","phillip","jackson","gina","michelle"]},{"type":"null"}],"title":"Voice"},"intelligence_level":{"anyOf":[{"type":"string","enum":["standard","high"]},{"type":"null"}],"title":"Intelligence Level"},"audio_speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.5},{"type":"null"}],"title":"Audio Speed"},"vad":{"anyOf":[{"$ref":"#/components/schemas/PhonicVadConfig"},{"type":"null"}]},"boosted_keywords":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Boosted Keywords","description":"Recognition hints. Unset, use the service keyterms."},"pronunciation_dictionary":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhonicPronunciation"},"type":"array","maxItems":100},{"type":"null"}],"title":"Pronunciation Dictionary"},"multilingual_mode":{"anyOf":[{"type":"string","enum":["auto","request","initial"]},{"type":"null"}],"title":"Multilingual Mode"}},"additionalProperties":false,"type":"object","title":"PhonicSessionConfig","description":"Phonic controls for a service."},"PhonicVadConfig":{"properties":{"threshold":{"anyOf":[{"type":"number","maximum":0.8,"minimum":0.2},{"type":"null"}],"title":"Threshold"},"prebuffer_duration_ms":{"anyOf":[{"type":"integer","maximum":2000,"minimum":0},{"type":"null"}],"title":"Prebuffer Duration Ms"},"min_speech_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Speech Duration Ms"},"min_silence_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Silence Duration Ms"},"min_words_to_interrupt":{"anyOf":[{"type":"integer","maximum":10,"minimum":1},{"type":"null"}],"title":"Min Words To Interrupt"}},"additionalProperties":false,"type":"object","title":"PhonicVadConfig","description":"Phonic's server VAD. Unset fields keep Phonic's defaults."},"PhonicPronunciation":{"properties":{"word":{"type":"string","maxLength":30,"minLength":1,"title":"Word"},"pronunciation":{"type":"string","maxLength":50,"minLength":1,"title":"Pronunciation"}},"additionalProperties":false,"type":"object","required":["word","pronunciation"],"title":"PhonicPronunciation"},"StaffedHours":{"properties":{"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone"},"windows":{"items":{"$ref":"#/components/schemas/StaffedWindow"},"type":"array","maxItems":50,"minItems":1,"title":"Windows"},"closed_on_us_federal_holidays":{"type":"boolean","title":"Closed On Us Federal Holidays","default":false},"closed_dates":{"items":{"type":"string","maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"type":"array","maxItems":100,"title":"Closed Dates"}},"type":"object","required":["timezone","windows"],"title":"StaffedHours","description":"When the people who answer a service's lines are there.\n\nA weekday with no window is closed all day. A closed date, and a federal holiday when the service closes for\nthem, close the whole day whatever the windows say. Everything else is open exactly where a window covers the\nwall-clock time of the zone."},"StaffedWindow":{"properties":{"day":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"title":"Day"},"open":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Open"},"close":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Close"}},"type":"object","required":["day","open","close"],"title":"StaffedWindow","description":"One stretch of one weekday that people answer: from ``open`` up to, not including, ``close``."},"ServiceForwardingResponse":{"properties":{"forward_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"warm_transfer_answer_timeout_s":{"type":"integer","maximum":55,"minimum":10,"title":"Warm Transfer Answer Timeout S","default":30},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue","default":"hand_over"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss","default":"hand_back"},"receiver_classifier":{"type":"string","enum":["twilio_amd","platform"],"title":"Receiver Classifier","default":"twilio_amd"},"approved_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Approved Destinations"},"fallback_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"test_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":20,"title":"Test Destinations"},"verification_callers":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/PhoneE164"},"type":"object","maxProperties":10,"title":"Verification Callers"},"hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"after_hours_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"default_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"transfer_reasons":{"items":{"$ref":"#/components/schemas/TransferReason"},"type":"array","maxItems":20,"title":"Transfer Reasons"},"destination_hours":{"additionalProperties":{"$ref":"#/components/schemas/DestinationHours"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Destination Hours"},"unsupported_language_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"type":"object","required":["forward_to","warm_transfer","warm_transfer_answer_timeout_s","warm_transfer_on_queue","warm_transfer_on_miss","receiver_classifier","approved_destinations","fallback_to","test_destinations","verification_callers","hours","after_hours_destination","default_destination","transfer_reasons","destination_hours","unsupported_language_destination"],"title":"ServiceForwardingResponse","description":"Forwarding responses always include defaults; the input keeps its existing schema name."},"DialE164":{"type":"string","maxLength":16,"minLength":2},"PhoneE164":{"type":"string","maxLength":16,"minLength":2},"TransferReason":{"properties":{"key":{"$ref":"#/components/schemas/TransferReasonKey"},"description":{"$ref":"#/components/schemas/DescriptionString","maxLength":200}},"additionalProperties":false,"type":"object","required":["key","description"],"title":"TransferReason","description":"One reason a service's transfers name (``ServiceForwardingConfig.transfer_reasons``)."},"TransferReasonKey":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9_-]*[a-z0-9]$"},"DescriptionString":{"type":"string","maxLength":2000},"DestinationHours":{"properties":{"hours":{"$ref":"#/components/schemas/StaffedHours"},"after_hours":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["hours"],"title":"DestinationHours","description":"One approved line's own staffed hours and after-hours line, in place of its service's\n(``ServiceForwardingConfig.destination_hours``)."},"ContextKeySpec":{"properties":{"key":{"$ref":"#/components/schemas/SlugString"},"type":{"type":"string","enum":["string","number"],"title":"Type"},"description":{"$ref":"#/components/schemas/DescriptionString"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["key","type","description","required"],"title":"ContextKeySpec","description":"One key a conversation may supply as start-time context for a service.\n\nThe value is validated against ``type`` at conversation start; a tool can then\nbind the key to one of its parameters (injected, hidden from the model)."},"SlugString":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$"},"CrisisCall911Reply":{"properties":{"en":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1},"es":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1}},"additionalProperties":false,"type":"object","required":["en","es"],"title":"CrisisCall911Reply","description":"Per-service wording added when a caller already in crisis asks for emergency dispatch."},"ContactLine":{"properties":{"kind":{"type":"string","enum":["crisis","domestic_violence","child_abuse","poison_help","clinical_24h","front_desk"],"title":"Kind"},"number":{"type":"string","maxLength":16,"minLength":2,"title":"Number"},"spoken_name":{"$ref":"#/components/schemas/NameString","maxLength":80},"spoken_name_es":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"area":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"available_24h":{"type":"boolean","title":"Available 24H"},"may_read_aloud":{"type":"boolean","title":"May Read Aloud"}},"additionalProperties":false,"type":"object","required":["kind","number","spoken_name","available_24h","may_read_aloud"],"title":"ContactLine","description":"A service's declared contact line."},"ServiceOutputChecks":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/PhiUnverifiedCheck"},"blocklisted_number":{"$ref":"#/components/schemas/BlocklistedNumberCheck"},"misspelled_word":{"$ref":"#/components/schemas/MisspelledWordCheck"},"dosing_or_med_change":{"$ref":"#/components/schemas/CheckerLabelCheck"},"diagnosis":{"$ref":"#/components/schemas/CheckerLabelCheck"},"false_confirmation":{"$ref":"#/components/schemas/CheckerLabelCheck"},"dispatch_promise":{"$ref":"#/components/schemas/CheckerLabelCheck"},"action_promise":{"$ref":"#/components/schemas/ActionPromiseCheck"},"unbacked_action_claims":{"$ref":"#/components/schemas/UnbackedActionClaimsCheck"}},"additionalProperties":false,"type":"object","title":"ServiceOutputChecks"},"PhiUnverifiedCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"PhiUnverifiedCheck"},"BlocklistedNumberCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"BlocklistedNumberCheck"},"MisspelledWordCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"MisspelledWordCheck"},"CheckerLabelCheck":{"properties":{"mode":{"type":"string","enum":["cut","count","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"CheckerLabelCheck"},"ActionPromiseCheck":{"properties":{"mode":{"type":"string","enum":["retry","off"],"title":"Mode","default":"retry"}},"additionalProperties":false,"type":"object","title":"ActionPromiseCheck"},"UnbackedActionClaimsCheck":{"properties":{"mode":{"type":"string","enum":["off","log","enforce"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"UnbackedActionClaimsCheck"},"ServiceEmergencyFloor":{"properties":{"text_self_harm":{"$ref":"#/components/schemas/TextSelfHarmFloor"},"text_medical":{"$ref":"#/components/schemas/TextMedicalFloor"},"held_text":{"$ref":"#/components/schemas/HeldTextFloor"}},"additionalProperties":false,"type":"object","title":"ServiceEmergencyFloor"},"TextSelfHarmFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"TextSelfHarmFloor"},"TextMedicalFloor":{"properties":{"mode":{"type":"string","enum":["enforce","shadow","off"],"title":"Mode","default":"shadow"}},"additionalProperties":false,"type":"object","title":"TextMedicalFloor"},"HeldTextFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"HeldTextFloor"},"ConversationAuditSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"checks":{"items":{"$ref":"#/components/schemas/ConversationAuditCheck"},"type":"array","maxItems":4,"minItems":1,"title":"Checks"},"threshold":{"type":"integer","maximum":100,"minimum":1,"title":"Threshold","default":80}},"additionalProperties":false,"type":"object","title":"ConversationAuditSettings"},"ConversationAuditCheck":{"type":"string","enum":["obvious_errors","missed_escalation","wrong_information","missed_safety_event"]},"EffectiveHarness":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","title":"Harness"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"The release tag, or ``in-tree``. None when ``error`` is set."},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"source":{"type":"string","enum":["pin","harness_default","invalid_pin"],"title":"Source","description":"``invalid_pin``: the service stores a pin of this harness that no longer validates. The entry names no\nrelease, so the harness has nothing to run until the pin is set again. A ``pin`` or ``harness_default`` with an\n``error`` names a release the platform may no longer run, and names no release either."},"contract_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Version","description":"The contract the release was built on, from the registry. None for ``in-tree`` and when ``error`` is set."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why the harness has nothing to run on the service: its stored pin is invalid, or its pin or default names a\nrelease or a policy the platform may no longer run (revoked, unregistered, or off the supported contract range),\nor its pin names a harness the service does not run.\nSet, the entry names no release and no policy, so the harness has nothing to run. None otherwise."},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"The policy release the harness runs the values of: the pin's, else the default's. None when neither names one,\nand when ``error`` is set."}},"type":"object","required":["kind","harness","repo","tag","asset","sha256","source","contract_version","error","policy"],"title":"EffectiveHarness","description":"The release one harness runs on a service, and where that came from. ``repo``, ``asset`` and ``sha256`` are\nNone for ``in-tree``. agent-engine loads the wheel it baked at ``/opt/harnesses/<sha256>/``."},"HarnessKind":{"type":"string","enum":["voice","text"]},"PolicyRef":{"properties":{"repo":{"type":"string","maxLength":128,"minLength":1,"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag"},"asset":{"type":"string","maxLength":256,"minLength":1,"title":"Asset"},"sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256"}},"type":"object","required":["repo","tag","asset","sha256"],"title":"PolicyRef","description":"A policy release registered in ``policy_releases.json``, named exactly: one family's values for the settings\nCore declares. The image bakes it at ``/opt/harness-policies/<sha256>.json``."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services":{"get":{"tags":["Services"],"summary":"List services","description":"List services in a workspace with pagination. Filter by `agent_id` or `context_graph_id` to list the services on an agent or context graph, or by `allow_unverified_integration_results` to list the services that have that bypass on. Requires `Service.view` permission.","operationId":"list-services","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Sort By"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"exclusiveMinimum":0,"default":50,"title":"Limit"}},{"name":"continuation_token","in":"query","required":false,"schema":{"title":"Continuation Token"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SearchString"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only services on this agent. Each version set pins a version of its service's agent.","title":"Agent Id"},"description":"Only services on this agent. Each version set pins a version of its service's agent."},{"name":"context_graph_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only services on this context graph. Each version set pins a version of its service's context graph.","title":"Context Graph Id"},"description":"Only services on this context graph. Each version set pins a version of its service's context graph."},{"name":"allow_unverified_integration_results","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only services whose `allow_unverified_integration_results` bypass is on (`true`) or off (`false`). A service\nthat never set it reads off. `true` lists the services that have the bypass on.","title":"Allow Unverified Integration Results"},"description":"Only services whose `allow_unverified_integration_results` bypass is on (`true`) or off (`false`). A service\nthat never set it reads off. `true` lists the services that have the bypass on."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceListResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Create a service

> Create a new service linking an agent and, for one that runs workflow agent versions, a context graph. Validates that agent\_id and context\_graph\_id exist in the workspace and that every version set name and pinned version is valid, dynamic behavior pins included (see the version set upsert). A service created without context\_graph\_id binds no context graph: every version set of it has to run an agent version whose program is direct and pin no context graph version, or the create is refused with 422 \`context\_graph\_required\`. Requires \`Service.create\` permission, \`Service.update\` to name a \`caller\_verification\_endpoint\_id\`, to set any \`output\_checks\` or \`emergency\_floor\` key away from what it would inherit, to declare \`declared\_languages\` or to turn on \`conversation\_audit\`. Every change to \`allow\_unverified\_integration\_results\` is audited.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"CreateServiceRequest":{"properties":{"name":{"$ref":"#/components/schemas/NameString"},"description":{"$ref":"#/components/schemas/DescriptionString","default":""},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id","description":"The context graph the service's workflow agent versions run: one of this workspace's. Leave it out, or send\nnull, for a service that binds no graph. Every version set of such a service runs an agent version whose program\nis direct and pins no context graph version."},"keyterms":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":500,"title":"Keyterms"},"is_active":{"type":"boolean","title":"Is Active","default":true},"version_sets":{"additionalProperties":{"$ref":"#/components/schemas/VersionSet-Input"},"type":"object","title":"Version Sets","default":{}},"tags":{"items":{"$ref":"#/components/schemas/ServiceTag"},"type":"array","maxItems":50,"title":"Tags"},"tool_capacity":{"type":"integer","maximum":10,"minimum":1,"title":"Tool Capacity","default":3},"channel_type":{"type":"string","enum":["voice","text"],"title":"Channel Type","default":"voice"},"environment":{"type":"string","enum":["sandbox","production"],"title":"Environment","default":"production"},"demo_mode":{"type":"boolean","title":"Demo Mode","description":"Voice calls on this service open with only the recording notice, without the AI disclosure. For demos only,\nnever for a service that takes real callers.","default":false},"platform_caller_verification":{"type":"boolean","title":"Platform Caller Verification","description":"Whether the platform verifies a caller who may match a patient record by full name and date of\nbirth. Off, the agent never asks a caller to verify, and every platform tool that reads a patient\nrecord refuses. The service's integration tools run either way, unless one of them verifies its\ncallers (`caller_verification_endpoint_id`).","default":true},"caller_verification_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Caller Verification Endpoint Id","description":"The integration endpoint that verifies this service's callers, on a service with\n`platform_caller_verification` and `allow_unverified_integration_results` false. The endpoint has to\nbe one of this workspace's, declare `declarations.verifies`, and never wait for approval under its\nintegration's `approval_policy`. A successful call verifies the caller as the one patient its response\nnames there, once per conversation. The reads of that integration that declare the patient they read\nrefuse until then, and then run only for that patient, and the agent may share what they return.\nNaming one needs `Service.update`."},"allow_unverified_integration_results":{"type":"boolean","title":"Allow Unverified Integration Results","description":"A dangerous bypass, off by default. On, results from the service's integration endpoints, reads and\nwrites, never count as a patient record for the output checker's unverified-caller check\n(`output_checks.phi_unverified`, which runs only on a service that sets it to `cut`), so the agent may read\nthem back to any caller, verified or not. Writes are still held to everything else, the platform's own\npatient reads still refuse until the caller verifies, and data queries and skills still count. Never on\nbeside `caller_verification_endpoint_id`. Every change is audited.","default":false},"voice_config":{"anyOf":[{"$ref":"#/components/schemas/ServiceVoiceConfig-Input"},{"type":"null"}]},"accepted_context":{"items":{"$ref":"#/components/schemas/ContextKeySpec"},"type":"array","maxItems":100,"title":"Accepted Context"},"crisis_call_911_reply":{"anyOf":[{"$ref":"#/components/schemas/CrisisCall911Reply"},{"type":"null"}]},"contact_lines":{"items":{"$ref":"#/components/schemas/ContactLineInput"},"type":"array","maxItems":50,"title":"Contact Lines","description":"Declared direct contact lines. Public emergency and N11 short codes are refused."},"medical_emergency_ending":{"type":"string","enum":["stay_on_line","end_after_script"],"title":"Medical Emergency Ending","description":"How a voice call ends after a medical emergency's script: ``stay_on_line`` (the default) or\n``end_after_script``, which plays the authored closing line and then ends the call. A self-harm or\ncrisis statement keeps the call open in either.","default":"stay_on_line"},"output_checks":{"anyOf":[{"$ref":"#/components/schemas/ServiceOutputChecksRequest"},{"type":"null"}],"description":"Which reply checks run. A key left out inherits the workspace default (`GET /v1/{workspace_id}/settings/safety`),\nand the platform default where the workspace sets none. Setting any key needs `Service.update`."},"emergency_floor":{"anyOf":[{"$ref":"#/components/schemas/ServiceEmergencyFloorRequest"},{"type":"null"}],"description":"How the medical-emergency and crisis floor acts on the service's text conversations, voice notes and\nsimulations. A key left out inherits the workspace default, and the platform default where the workspace sets\nnone. Setting any key needs `Service.update`."},"conversation_audit":{"anyOf":[{"$ref":"#/components/schemas/ConversationAuditSettings"},{"type":"null"}],"description":"The post-call transcript quality audit. Left out, it is off. See `ConversationAuditSettings`."},"declared_languages":{"anyOf":[{"items":{"type":"string","enum":["en","es","ar","fr","de","pt","zh","ja","ko"]},"type":"array","maxItems":9,"minItems":1},{"type":"null"}],"title":"Declared Languages","description":"The languages this service serves, as ISO 639-1 codes: a non-empty list of distinct supported\nlanguages. Omit or null for none declared, which serves only the agent's default language."}},"type":"object","required":["name","agent_id"],"title":"CreateServiceRequest"},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"DescriptionString":{"type":"string","maxLength":2000},"VersionSet-Input":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"LLMConfig":{"properties":{"llm_name":{"type":"string","title":"Llm Name"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"experience_controls":{"anyOf":[{"$ref":"#/components/schemas/LLMExperienceControls"},{"type":"null"}]}},"type":"object","required":["llm_name"],"title":"LLMConfig"},"LLMExperienceControls":{"properties":{"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Top P"}},"additionalProperties":false,"type":"object","title":"LLMExperienceControls","description":"Typed model-tuning controls for a version set's LLM preference.\n\n``params`` stays available as a provider-specific escape hatch. These three fields are the ones deployments\nuse. Token budgets are left out on purpose, so a version set cannot cut a response short by accident."},"VersionSetBehaviorPin":{"properties":{"set_id":{"type":"string","format":"uuid","title":"Set Id","description":"The library set. It belongs to the service's workspace and isn't archived."},"version":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Version","description":"The version of the set the service runs. A later version of the set changes nothing until the pin moves."},"enabled":{"type":"boolean","title":"Enabled","description":"A disabled pin stays on the version set and is never offered.","default":true},"states":{"items":{"$ref":"#/components/schemas/NameString"},"type":"array","maxItems":200,"title":"States","description":"The action and data collection states it applies in. Empty: every one."}},"additionalProperties":false,"type":"object","required":["set_id","version"],"title":"VersionSetBehaviorPin","description":"One library set a version set uses, at one version."},"ServiceTag":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["key"],"title":"ServiceTag"},"ServiceVoiceConfig-Input":{"properties":{"silence_policy":{"$ref":"#/components/schemas/SilencePolicy"},"max_buffer_delay_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Buffer Delay Ms"},"eager_eot_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eager Eot Threshold"},"eot_timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eot Timeout Ms"},"filler_style":{"type":"string","enum":["backchannel","phrase","silent"],"title":"Filler Style","default":"backchannel"},"filler_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filler Vocabulary"},"backchannel_delay_ms":{"type":"integer","title":"Backchannel Delay Ms","default":400},"max_response_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Sentences"},"max_response_words":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Words"},"barge_in_min_speech_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Min Speech S"},"barge_in_cooldown_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Cooldown S"},"held_turn_policy":{"type":"string","enum":["always","judged","never"],"title":"Held Turn Policy","description":"What a realtime voice call does with a caller turn committed while the agent's own opening, the notice and the greeting, is still playing. always: the turn is answered once the opening ends. judged: the turn is answered only when it asks for something the opening did not cover, so a greeting, an acknowledgement or an echo of the opening is left unanswered, and a turn that cannot be judged is answered. never: the turn is not answered, and the caller's next turn is answered as usual. Every turn is still recorded and checked for a medical emergency, whatever the setting. It applies to a call the agent opens itself; a call that waits for the caller to speak first answers the first turn.","default":"always"},"min_tts_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Tts Speed"},"post_eot_pause_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Eot Pause Ms"},"transition_deadline_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transition Deadline Ms"},"progress_interval_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Interval Ms"},"empathy_hold_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Empathy Hold Ms"},"filler_cooldown_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filler Cooldown Ms"},"progress_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Progress Vocabulary"},"tts_provider":{"anyOf":[{"type":"string","enum":["cartesia","elevenlabs"]},{"type":"null"}],"title":"Tts Provider"},"tts_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tts Config"},"language_providers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LanguageProviderEntry"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Language Providers"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider"},"realtime_voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"type":"null"}],"title":"Realtime Voice","description":"Deprecated built-in OpenAI Realtime voice shortcut. Use realtime.voice instead; the two fields are mutually exclusive.","deprecated":true},"realtime":{"anyOf":[{"$ref":"#/components/schemas/RealtimeSessionConfig"},{"type":"null"}]},"eleven_realtime":{"anyOf":[{"$ref":"#/components/schemas/ElevenRealtimeSessionConfig"},{"type":"null"}]},"grok_voice":{"anyOf":[{"$ref":"#/components/schemas/GrokVoiceSessionConfig"},{"type":"null"}]},"gpt_live":{"anyOf":[{"$ref":"#/components/schemas/GptLiveSessionConfig"},{"type":"null"}]},"phonic":{"anyOf":[{"$ref":"#/components/schemas/PhonicSessionConfig"},{"type":"null"}]},"readiness_requires":{"anyOf":[{"items":{"type":"string","enum":["openai_realtime","decisions","warehouse"]},"type":"array","maxItems":10},{"type":"null"}],"title":"Readiness Requires"},"max_concurrent_calls":{"type":"integer","maximum":100,"minimum":1,"title":"Max Concurrent Calls","default":60},"max_calls_per_caller":{"type":"integer","maximum":100,"minimum":1,"title":"Max Calls Per Caller","default":2},"answer_hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"forwarding":{"anyOf":[{"$ref":"#/components/schemas/ServiceForwardingConfig-Input"},{"type":"null"}]}},"type":"object","title":"ServiceVoiceConfig","description":"Per-service voice pipeline tuning. Overrides workspace/env defaults.\n\nEach field is optional — None means inherit from the layer above\n(workspace VoiceSettings → env vars → hardcoded defaults).\n\nA field is read only by the families whose ``reads`` list it (``platform_lib.config.voice_families.specs``); a save\naccepts the others and reports them as ignored."},"SilencePolicy":{"properties":{"max_closing_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Closing Attempts","default":2},"max_cap_warning_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Cap Warning Attempts","default":2},"cap_warning_retry_seconds":{"type":"number","maximum":60,"minimum":1,"title":"Cap Warning Retry Seconds","default":10}},"additionalProperties":false,"type":"object","title":"SilencePolicy","description":"Per-service delivery retries around the signed silence cadence."},"LanguageProviderEntry":{"properties":{"provider":{"type":"string","enum":["cartesia","elevenlabs"],"title":"Provider"},"config":{"additionalProperties":true,"type":"object","maxProperties":20,"title":"Config"}},"type":"object","required":["provider"],"title":"LanguageProviderEntry","description":"Per-language TTS provider configuration."},"RealtimeSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","enum":["gpt-realtime-2.1","gpt-realtime-2.1-mini"]},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"$ref":"#/components/schemas/RealtimeCustomVoice"},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.25},{"type":"null"}],"title":"Speed"},"noise_reduction":{"anyOf":[{"type":"string","enum":["near_field","far_field","off"]},{"type":"null"}],"title":"Noise Reduction","description":"Input noise reduction. Omit or set null to use the Platform default; set 'off' to disable it."},"noise_reduction_strength":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Noise Reduction Strength","description":"OpenAI audio.input.noise_reduction.strength. Higher values suppress more noise.","docs_url":"https://developers.openai.com/api/reference/resources/realtime/client-events"},"transcription":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTranscriptionConfig"},{"type":"null"}]},"turn_detection":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/RealtimeServerVadConfig"},{"$ref":"#/components/schemas/RealtimeSemanticVadConfig"}],"discriminator":{"propertyName":"type","mapping":{"semantic_vad":"#/components/schemas/RealtimeSemanticVadConfig","server_vad":"#/components/schemas/RealtimeServerVadConfig"}}},{"type":"null"}],"title":"Turn Detection"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"max_output_tokens":{"anyOf":[{"type":"integer","maximum":4096,"minimum":1},{"type":"string","const":"inf"},{"type":"null"}],"title":"Max Output Tokens"},"truncation":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTruncationConfig"},{"type":"null"}]},"required_tool_on_first_caller_turn":{"anyOf":[{"type":"string","maxLength":256,"minLength":1,"pattern":"^[A-Za-z_][A-Za-z0-9_.:-]*$"},{"type":"null"}],"title":"Required Tool On First Caller Turn","description":"Force one named function on the first caller-generated response, excluding the inbound greeting, then restore automatic tool choice. Runtime accepts this only for source_override='test' sessions and tools that the executor verifies are read-only or side-effect-free."}},"additionalProperties":false,"type":"object","title":"RealtimeSessionConfig","description":"Typed OpenAI Realtime session controls for a service."},"RealtimeCustomVoice":{"properties":{"id":{"type":"string","maxLength":256,"minLength":1,"pattern":"^voice_[A-Za-z0-9_-]+$","title":"Id"}},"additionalProperties":false,"type":"object","required":["id"],"title":"RealtimeCustomVoice","description":"Approved OpenAI custom voice reference."},"RealtimeTranscriptionConfig":{"properties":{"model":{"type":"string","const":"gpt-transcribe","title":"Model","default":"gpt-transcribe"},"language":{"anyOf":[{"type":"string","enum":["af","ar","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","es","et","fa","fi","fr","gl","gu","he","hi","hr","hu","hy","id","is","it","iw","ja","ka","kk","kn","ko","lt","lv","mi","mk","ml","mr","ms","nb","ne","nl","no","pl","pt","ro","ru","sk","sl","sr","sv","sw","ta","te","th","tl","tr","uk","ur","vi","zh","afr","amh","ara","aze","bel","ben","bos","bul","cat","ces","cmn","cym","dan","deu","ell","eng","est","fas","fil","fin","fra","gle","glg","guj","heb","hin","hrv","hun","hye","ind","isl","ita","jpn","kan","kat","kaz","kor","lav","lit","mal","mar","mkd","mon","mri","msa","mya","nep","nld","nor","pol","por","ron","rus","slk","slv","som","spa","srp","swa","swe","tam","tel","tgl","tha","tur","ukr","urd","vie","yue","zh-cn","zh-hk","zh-tw"]},{"type":"null"}],"title":"Language"},"prompt":{"anyOf":[{"type":"string","maxLength":1024,"minLength":1},{"type":"null"}],"title":"Prompt"},"keywords":{"anyOf":[{"items":{"type":"string","maxLength":256,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keywords","description":"Literal transcription hints. Unset, use the service keyterms.","docs_url":"https://developers.openai.com/api/docs/guides/transcription"}},"additionalProperties":false,"type":"object","title":"RealtimeTranscriptionConfig","description":"Asynchronous caller-audio transcription used for transcripts and observability."},"RealtimeServerVadConfig":{"properties":{"type":{"type":"string","const":"server_vad","title":"Type","default":"server_vad"},"threshold":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Threshold"},"prefix_padding_ms":{"anyOf":[{"type":"integer","maximum":5000,"minimum":0},{"type":"null"}],"title":"Prefix Padding Ms"},"silence_duration_ms":{"anyOf":[{"type":"integer","maximum":3000,"minimum":200},{"type":"null"}],"title":"Silence Duration Ms"}},"additionalProperties":false,"type":"object","title":"RealtimeServerVadConfig","description":"Volume-based turn detection controls."},"RealtimeSemanticVadConfig":{"properties":{"type":{"type":"string","const":"semantic_vad","title":"Type","default":"semantic_vad"},"eagerness":{"type":"string","enum":["auto","low","medium","high"],"title":"Eagerness","default":"auto"}},"additionalProperties":false,"type":"object","title":"RealtimeSemanticVadConfig","description":"Semantic turn detection controls."},"RealtimeTruncationConfig":{"properties":{"type":{"type":"string","enum":["auto","disabled","retention_ratio"],"title":"Type","description":"Use auto or retention_ratio. Legacy disabled values are readable but refused by voice sessions.","default":"auto","docs_url":"https://developers.openai.com/api/docs/guides/voice-latency-cost?api=realtime#truncation"},"retention_ratio":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Retention Ratio"},"post_instructions_tokens":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Post Instructions Tokens"}},"additionalProperties":false,"type":"object","title":"RealtimeTruncationConfig","description":"Conversation context truncation strategy."},"ElevenRealtimeSessionConfig":{"properties":{"voice":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Voice"},"model":{"anyOf":[{"type":"string","const":"eleven_realtime_v1_mini"},{"type":"null"}],"title":"Model"}},"additionalProperties":false,"type":"object","required":["voice"],"title":"ElevenRealtimeSessionConfig","description":"Eleven Realtime controls for a service: the ElevenLabs voice it speaks in, and the model."},"GrokVoiceSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"grok-voice-3.0"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["altair","ara","atlas","aurora","carina","castor","celeste","cosmo","eve","helios","helix","iris","kepler","leo","liora","lumen","luna","lux","naksh","orion","perseus","rex","rigel","sal","sirius","ursa","zagan","zenith"]},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.7},{"type":"null"}],"title":"Speed"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","high"]},{"type":"null"}],"title":"Reasoning Effort"},"keyterms":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keyterms","description":"Transcription hints. Unset, use the service keyterms. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"},"language_hint":{"anyOf":[{"type":"string","enum":["en","ar-EG","ar-SA","ar-AE","bn","zh","fr","de","hi","id","it","ja","ko","pt-BR","pt-PT","ru","es-MX","es-ES","tr","vi"]},{"type":"null"}],"title":"Language Hint"},"replace":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":100,"minLength":1},"propertyNames":{"maxLength":100,"minLength":1},"type":"object","maxProperties":100,"minProperties":1},{"type":"null"}],"title":"Replace","description":"Pronunciation replacements: a phrase the agent says mapped to how xAI speaks it. Matched case-insensitively on whole words, longest key first. Keys and values are stripped, and keys that differ only by case are refused. xAI changes the audio and not its transcript; the runtime applies the same map to the transcript before the output checks read it, so they judge what the caller hears. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"}},"additionalProperties":false,"type":"object","title":"GrokVoiceSessionConfig","description":"Grok Voice controls for a service. Every field is optional: the provider supplies the defaults."},"GptLiveSessionConfig":{"properties":{"model":{"type":"string","enum":["gpt-live-1","gpt-live-1.1-leopard-2-alpha"],"title":"Model","default":"gpt-live-1"},"voice":{"type":"string","enum":["alloy","ash","ballad","beacon","bossa","brise","cedar","cinder","coral","delta","echo","flitz","gleam","harema","juni","marin","meridian","nira","noeul","nuri","quartz","ripple","sage","shida","shimmer","sillage","stone","tempo","verse","vesper","willow"],"title":"Voice","default":"marin"}},"additionalProperties":false,"type":"object","title":"GptLiveSessionConfig","description":"Live startup settings. Language comes from the agent's instructions, not a protocol field."},"PhonicSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"phonic-1"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["sabrina","grant","sandeep","landon","shelby","mason","virginia","eleanor","gabrielle","paula","nolan","roberto","hikari","tomoya","eloise","jerome","daniela","juliana","valeria","eduardo","henri","kourtney","kaspar","mei","stella","karoline","amelia","william","joon","hana","mia","derek","divya","alice","karin","phillip","jackson","gina","michelle"]},{"type":"null"}],"title":"Voice"},"intelligence_level":{"anyOf":[{"type":"string","enum":["standard","high"]},{"type":"null"}],"title":"Intelligence Level"},"audio_speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.5},{"type":"null"}],"title":"Audio Speed"},"vad":{"anyOf":[{"$ref":"#/components/schemas/PhonicVadConfig"},{"type":"null"}]},"boosted_keywords":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Boosted Keywords","description":"Recognition hints. Unset, use the service keyterms."},"pronunciation_dictionary":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhonicPronunciation"},"type":"array","maxItems":100},{"type":"null"}],"title":"Pronunciation Dictionary"},"multilingual_mode":{"anyOf":[{"type":"string","enum":["auto","request","initial"]},{"type":"null"}],"title":"Multilingual Mode"}},"additionalProperties":false,"type":"object","title":"PhonicSessionConfig","description":"Phonic controls for a service."},"PhonicVadConfig":{"properties":{"threshold":{"anyOf":[{"type":"number","maximum":0.8,"minimum":0.2},{"type":"null"}],"title":"Threshold"},"prebuffer_duration_ms":{"anyOf":[{"type":"integer","maximum":2000,"minimum":0},{"type":"null"}],"title":"Prebuffer Duration Ms"},"min_speech_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Speech Duration Ms"},"min_silence_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Silence Duration Ms"},"min_words_to_interrupt":{"anyOf":[{"type":"integer","maximum":10,"minimum":1},{"type":"null"}],"title":"Min Words To Interrupt"}},"additionalProperties":false,"type":"object","title":"PhonicVadConfig","description":"Phonic's server VAD. Unset fields keep Phonic's defaults."},"PhonicPronunciation":{"properties":{"word":{"type":"string","maxLength":30,"minLength":1,"title":"Word"},"pronunciation":{"type":"string","maxLength":50,"minLength":1,"title":"Pronunciation"}},"additionalProperties":false,"type":"object","required":["word","pronunciation"],"title":"PhonicPronunciation"},"StaffedHours":{"properties":{"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone"},"windows":{"items":{"$ref":"#/components/schemas/StaffedWindow"},"type":"array","maxItems":50,"minItems":1,"title":"Windows"},"closed_on_us_federal_holidays":{"type":"boolean","title":"Closed On Us Federal Holidays","default":false},"closed_dates":{"items":{"type":"string","maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"type":"array","maxItems":100,"title":"Closed Dates"}},"type":"object","required":["timezone","windows"],"title":"StaffedHours","description":"When the people who answer a service's lines are there.\n\nA weekday with no window is closed all day. A closed date, and a federal holiday when the service closes for\nthem, close the whole day whatever the windows say. Everything else is open exactly where a window covers the\nwall-clock time of the zone."},"StaffedWindow":{"properties":{"day":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"title":"Day"},"open":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Open"},"close":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Close"}},"type":"object","required":["day","open","close"],"title":"StaffedWindow","description":"One stretch of one weekday that people answer: from ``open`` up to, not including, ``close``."},"ServiceForwardingConfig-Input":{"properties":{"forward_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"warm_transfer_answer_timeout_s":{"type":"integer","maximum":55,"minimum":10,"title":"Warm Transfer Answer Timeout S","default":30},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue","default":"hand_over"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss","default":"hand_back"},"receiver_classifier":{"type":"string","enum":["twilio_amd","platform"],"title":"Receiver Classifier","default":"twilio_amd"},"approved_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Approved Destinations"},"fallback_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"test_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":20,"title":"Test Destinations"},"verification_callers":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/PhoneE164"},"type":"object","maxProperties":10,"title":"Verification Callers"},"hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"after_hours_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"default_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"transfer_reasons":{"items":{"$ref":"#/components/schemas/TransferReason"},"type":"array","maxItems":20,"title":"Transfer Reasons"},"destination_hours":{"additionalProperties":{"$ref":"#/components/schemas/DestinationHours"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Destination Hours"},"unsupported_language_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"type":"object","required":["forward_to"],"title":"ServiceForwardingConfig","description":"Per-service call-forwarding destination + transfer mechanism.\n\nThis block gates the ``forward_call`` tool: None means the agent cannot\ntransfer at all. When present, ``forward_to`` picks the destination mode,\nand the tool schema follows it — a static service gets an argument-less\ntool, a dynamic one gets a required ``phone_number`` that must be one of\n``approved_destinations`` (none approved means no tool). Nothing cascades:\na service is one mode or the other. ``fallback_to`` is no mode: it is the\nline the safe exit dials, in either, and ``forward_call`` never offers it.\nA call tagged as a test reaches only ``test_destinations``, in either mode, unless\nits caller is one of ``verification_callers``.\n``hours`` is none either: on a dynamic service, a transfer outside its staffed\nhours dials ``after_hours_destination`` whichever approved line was asked for, unless that line keeps\nhours of its own in ``destination_hours``.\nA dynamic service can also name a ``default_destination``, the line a transfer that names none dials. A service\nin either mode can list the ``transfer_reasons`` each of its transfers names and the call records."},"DialE164":{"type":"string","maxLength":16,"minLength":2},"PhoneE164":{"type":"string","maxLength":16,"minLength":2},"TransferReason":{"properties":{"key":{"$ref":"#/components/schemas/TransferReasonKey"},"description":{"$ref":"#/components/schemas/DescriptionString","maxLength":200}},"additionalProperties":false,"type":"object","required":["key","description"],"title":"TransferReason","description":"One reason a service's transfers name (``ServiceForwardingConfig.transfer_reasons``)."},"TransferReasonKey":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9_-]*[a-z0-9]$"},"DestinationHours":{"properties":{"hours":{"$ref":"#/components/schemas/StaffedHours"},"after_hours":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["hours"],"title":"DestinationHours","description":"One approved line's own staffed hours and after-hours line, in place of its service's\n(``ServiceForwardingConfig.destination_hours``)."},"ContextKeySpec":{"properties":{"key":{"$ref":"#/components/schemas/SlugString"},"type":{"type":"string","enum":["string","number"],"title":"Type"},"description":{"$ref":"#/components/schemas/DescriptionString"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["key","type","description","required"],"title":"ContextKeySpec","description":"One key a conversation may supply as start-time context for a service.\n\nThe value is validated against ``type`` at conversation start; a tool can then\nbind the key to one of its parameters (injected, hidden from the model)."},"SlugString":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$"},"CrisisCall911Reply":{"properties":{"en":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1},"es":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1}},"additionalProperties":false,"type":"object","required":["en","es"],"title":"CrisisCall911Reply","description":"Per-service wording added when a caller already in crisis asks for emergency dispatch."},"ContactLineInput":{"properties":{"kind":{"type":"string","enum":["crisis","domestic_violence","child_abuse","poison_help","clinical_24h","front_desk"],"title":"Kind"},"number":{"$ref":"#/components/schemas/DialE164"},"spoken_name":{"$ref":"#/components/schemas/NameString","maxLength":80},"spoken_name_es":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"area":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"available_24h":{"type":"boolean","title":"Available 24H"},"may_read_aloud":{"type":"boolean","title":"May Read Aloud"}},"additionalProperties":false,"type":"object","required":["kind","number","spoken_name","available_24h","may_read_aloud"],"title":"ContactLineInput","description":"Save-time number policy; persisted declarations remain readable after policy changes."},"ServiceOutputChecksRequest":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/PhiUnverifiedCheck","description":"On a voice call, `cut` stops a reply that reads something from a patient's record to a caller who has not\nverified, and the caller hears a correction in its place. `off`, the platform default, does not run the check."},"blocklisted_number":{"$ref":"#/components/schemas/BlocklistedNumberCheck","description":"`cut`, the platform default, stops a reply that speaks a number on the platform phone blocklist, and the caller\nhears the no-confirmed-number correction in its place. `off` lets the reply speak it. A listed number is still\nnever dialed and is still refused as a destination."},"misspelled_word":{"$ref":"#/components/schemas/MisspelledWordCheck","description":"`cut`, the platform default, stops a reply that spells back, letter by letter, a word close to but not the one\nthe caller just said. `off` lets the spelling play."},"dosing_or_med_change":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that gives dosing advice or tells the caller to change a medication. `cut` (the platform default)\nreplaces it with a correction, `count` lets it play and counts it, `off` lets it play."},"diagnosis":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says what is wrong with the caller, or that a symptom needs no care. `cut`, `count` or `off`."},"false_confirmation":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says a booking, message or other action is done when no write on the call backs it. `cut`,\n`count` or `off`."},"dispatch_promise":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says emergency help is called, sent or on the way. `cut`, `count` or `off`."},"action_promise":{"$ref":"#/components/schemas/ActionPromiseCheck","description":"A reply that called no tool and tells the caller the agent is doing something now, on text or a realtime call.\n`retry`, the platform default, gives the agent one more go with a note to act or say what it can't do. `off`\nsends the reply as written."},"unbacked_action_claims":{"$ref":"#/components/schemas/UnbackedActionClaimsCheck","description":"Text only. A reply that says something was done for the client, such as an escalation, a handoff or a message\npassed to a team, when no tool that succeeded in the turn did it. `off`, the platform default, does not read the\nreply. `log` reads it and counts a claim it finds; the reply goes out as written. `enforce` holds the reply back\nand gives the agent one more go with a note to call the tool first or not claim it; a second reply that still\nclaims it goes out cut before the claim, with the false-confirmation correction in its place."}},"additionalProperties":false,"type":"object","title":"ServiceOutputChecksRequest","description":"The reply checks a service or a workspace sets. A key left out inherits: a service's from the workspace default,\nthe workspace's from the platform default. Every key can be set to `off`."},"PhiUnverifiedCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"PhiUnverifiedCheck"},"BlocklistedNumberCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"BlocklistedNumberCheck"},"MisspelledWordCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"MisspelledWordCheck"},"CheckerLabelCheck":{"properties":{"mode":{"type":"string","enum":["cut","count","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"CheckerLabelCheck"},"ActionPromiseCheck":{"properties":{"mode":{"type":"string","enum":["retry","off"],"title":"Mode","default":"retry"}},"additionalProperties":false,"type":"object","title":"ActionPromiseCheck"},"UnbackedActionClaimsCheck":{"properties":{"mode":{"type":"string","enum":["off","log","enforce"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"UnbackedActionClaimsCheck"},"ServiceEmergencyFloorRequest":{"properties":{"text_self_harm":{"$ref":"#/components/schemas/TextSelfHarmFloor","description":"A message that says the person is thinking about harming or killing themselves. `enforce`, the platform default,\nanswers it with the floor's crisis script (the region's crisis line, the service's crisis contacts and the\nemergency number) in place of the agent's reply. `off` leaves it to the agent."},"text_medical":{"$ref":"#/components/schemas/TextMedicalFloor","description":"A message that describes a medical emergency, such as chest pain or trouble breathing. `shadow`, the platform\ndefault, detects and counts it and opens the floor's hold, and the agent's reply goes out. `enforce` answers it\nwith the floor's emergency-number script instead. `off` leaves it to the agent."},"held_text":{"$ref":"#/components/schemas/HeldTextFloor","description":"A message on a conversation an operator holds. `enforce`, the platform default, answers it with the floor's\nscript when it names any emergency. `off` leaves every held message to the operator."}},"additionalProperties":false,"type":"object","title":"ServiceEmergencyFloorRequest","description":"How the medical-emergency and crisis floor acts on text conversations (SMS, email, web chat and the other\nmessaging channels), voice notes and simulations. A key left out inherits: a service's from the workspace default,\nthe workspace's from the platform default, which is today's behavior. Every key can be set to `off`, and then the\nfloor neither replaces nor alters the reply: the agent's own reply and tools run, no hold opens, and the hit is\nonly counted. A voice call's floor is not set here."},"TextSelfHarmFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"TextSelfHarmFloor"},"TextMedicalFloor":{"properties":{"mode":{"type":"string","enum":["enforce","shadow","off"],"title":"Mode","default":"shadow"}},"additionalProperties":false,"type":"object","title":"TextMedicalFloor"},"HeldTextFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"HeldTextFloor"},"ConversationAuditSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"checks":{"items":{"$ref":"#/components/schemas/ConversationAuditCheck"},"type":"array","maxItems":4,"minItems":1,"title":"Checks"},"threshold":{"type":"integer","maximum":100,"minimum":1,"title":"Threshold","default":80}},"additionalProperties":false,"type":"object","title":"ConversationAuditSettings"},"ConversationAuditCheck":{"type":"string","enum":["obvious_errors","missed_escalation","wrong_information","missed_safety_event"]},"ServiceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id","description":"The context graph the service binds. Null on a service that binds none: it runs direct programs only."},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"context_graph_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Graph Name"},"keyterms":{"items":{"type":"string"},"type":"array","title":"Keyterms"},"is_active":{"type":"boolean","title":"Is Active"},"version_sets":{"additionalProperties":{"$ref":"#/components/schemas/VersionSet-Output"},"type":"object","title":"Version Sets"},"tags":{"items":{"$ref":"#/components/schemas/ServiceTag"},"type":"array","title":"Tags"},"tool_capacity":{"type":"integer","title":"Tool Capacity"},"channel_type":{"type":"string","enum":["voice","text"],"title":"Channel Type","default":"voice"},"environment":{"type":"string","enum":["sandbox","production"],"title":"Environment","default":"production"},"demo_mode":{"type":"boolean","title":"Demo Mode","description":"Voice calls on this service open with only the recording notice, without the AI disclosure. For demos only,\nnever for a service that takes real callers.","default":false},"platform_caller_verification":{"type":"boolean","title":"Platform Caller Verification","description":"Whether the platform verifies a caller who may match a patient record by full name and date of\nbirth. Off, the agent never asks a caller to verify, and every platform tool that reads a patient\nrecord refuses. The service's integration tools run either way, unless one of them verifies its\ncallers (`caller_verification_endpoint_id`).","default":true},"caller_verification_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Caller Verification Endpoint Id","description":"The integration endpoint that verifies this service's callers, or null when none does."},"allow_unverified_integration_results":{"type":"boolean","title":"Allow Unverified Integration Results","description":"A dangerous bypass, off by default. On, results from the service's integration endpoints, reads and\nwrites, never count as a patient record for the output checker's unverified-caller check\n(`output_checks.phi_unverified`, which runs only on a service that sets it to `cut`), so the agent may read\nthem back to any caller, verified or not. Writes are still held to everything else, the platform's own\npatient reads still refuse until the caller verifies, and data queries and skills still count. Never on\nbeside `caller_verification_endpoint_id`. Every change is audited.","default":false},"voice_config":{"anyOf":[{"$ref":"#/components/schemas/ServiceVoiceConfig-Output"},{"type":"null"}]},"accepted_context":{"items":{"$ref":"#/components/schemas/ContextKeySpec"},"type":"array","title":"Accepted Context"},"crisis_call_911_reply":{"anyOf":[{"$ref":"#/components/schemas/CrisisCall911Reply"},{"type":"null"}]},"contact_lines":{"items":{"$ref":"#/components/schemas/ContactLine"},"type":"array","maxItems":50,"title":"Contact Lines","description":"Declared direct contact lines. Public emergency and N11 short codes are refused."},"medical_emergency_ending":{"type":"string","enum":["stay_on_line","end_after_script"],"title":"Medical Emergency Ending","description":"How a voice call ends after a medical emergency's script: ``stay_on_line`` (the default) or\n``end_after_script``, which plays the authored closing line and then ends the call. A self-harm or\ncrisis statement keeps the call open in either.","default":"stay_on_line"},"output_checks":{"$ref":"#/components/schemas/ServiceOutputChecks","description":"The checks the service's calls run: its own block over the workspace defaults. Where each value comes from:\n`GET /v1/{workspace_id}/services/{service_id}/safety`."},"emergency_floor":{"$ref":"#/components/schemas/ServiceEmergencyFloor","description":"How the floor acts on the service's text conversations: its own block over the workspace defaults. Where each\nvalue comes from: `GET /v1/{workspace_id}/services/{service_id}/safety`."},"conversation_audit":{"$ref":"#/components/schemas/ConversationAuditSettings","description":"The post-call transcript quality audit, off unless the service turns it on."},"declared_languages":{"anyOf":[{"items":{"type":"string","enum":["en","es","ar","fr","de","pt","zh","ja","ko"]},"type":"array","maxItems":9,"minItems":1},{"type":"null"}],"title":"Declared Languages","description":"The languages this service serves, as ISO 639-1 codes. None: none declared."},"effective_harnesses":{"anyOf":[{"items":{"$ref":"#/components/schemas/EffectiveHarness"},"type":"array"},{"type":"null"}],"title":"Effective Harnesses","description":"The release each voice and text harness that has a platform default runs on the service's calls: its pin, else\nthe harness default. Set by the single-service GET, left out of lists. `GET .../services/{service_id}/harnesses`\nlists only the harnesses the service runs."},"is_system":{"type":"boolean","title":"Is System","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","description","agent_id","context_graph_id","keyterms","is_active","version_sets","tags","tool_capacity","created_at","updated_at"],"title":"ServiceResponse"},"VersionSet-Output":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"ServiceVoiceConfig-Output":{"properties":{"silence_policy":{"$ref":"#/components/schemas/SilencePolicy"},"max_buffer_delay_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Buffer Delay Ms"},"eager_eot_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eager Eot Threshold"},"eot_timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eot Timeout Ms"},"filler_style":{"type":"string","enum":["backchannel","phrase","silent"],"title":"Filler Style","default":"backchannel"},"filler_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filler Vocabulary"},"backchannel_delay_ms":{"type":"integer","title":"Backchannel Delay Ms","default":400},"max_response_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Sentences"},"max_response_words":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Words"},"barge_in_min_speech_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Min Speech S"},"barge_in_cooldown_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Cooldown S"},"held_turn_policy":{"type":"string","enum":["always","judged","never"],"title":"Held Turn Policy","description":"What a realtime voice call does with a caller turn committed while the agent's own opening, the notice and the greeting, is still playing. always: the turn is answered once the opening ends. judged: the turn is answered only when it asks for something the opening did not cover, so a greeting, an acknowledgement or an echo of the opening is left unanswered, and a turn that cannot be judged is answered. never: the turn is not answered, and the caller's next turn is answered as usual. Every turn is still recorded and checked for a medical emergency, whatever the setting. It applies to a call the agent opens itself; a call that waits for the caller to speak first answers the first turn.","default":"always"},"min_tts_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Tts Speed"},"post_eot_pause_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Eot Pause Ms"},"transition_deadline_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transition Deadline Ms"},"progress_interval_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Interval Ms"},"empathy_hold_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Empathy Hold Ms"},"filler_cooldown_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filler Cooldown Ms"},"progress_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Progress Vocabulary"},"tts_provider":{"anyOf":[{"type":"string","enum":["cartesia","elevenlabs"]},{"type":"null"}],"title":"Tts Provider"},"tts_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tts Config"},"language_providers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LanguageProviderEntry"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Language Providers"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider"},"realtime_voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"type":"null"}],"title":"Realtime Voice","description":"Deprecated built-in OpenAI Realtime voice shortcut. Use realtime.voice instead; the two fields are mutually exclusive.","deprecated":true},"realtime":{"anyOf":[{"$ref":"#/components/schemas/RealtimeSessionConfig"},{"type":"null"}]},"eleven_realtime":{"anyOf":[{"$ref":"#/components/schemas/ElevenRealtimeSessionConfig"},{"type":"null"}]},"grok_voice":{"anyOf":[{"$ref":"#/components/schemas/GrokVoiceSessionConfig"},{"type":"null"}]},"gpt_live":{"anyOf":[{"$ref":"#/components/schemas/GptLiveSessionConfig"},{"type":"null"}]},"phonic":{"anyOf":[{"$ref":"#/components/schemas/PhonicSessionConfig"},{"type":"null"}]},"readiness_requires":{"anyOf":[{"items":{"type":"string","enum":["openai_realtime","decisions","warehouse"]},"type":"array","maxItems":10},{"type":"null"}],"title":"Readiness Requires"},"max_concurrent_calls":{"type":"integer","maximum":100,"minimum":1,"title":"Max Concurrent Calls","default":60},"max_calls_per_caller":{"type":"integer","maximum":100,"minimum":1,"title":"Max Calls Per Caller","default":2},"answer_hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"forwarding":{"anyOf":[{"$ref":"#/components/schemas/ServiceForwardingResponse"},{"type":"null"}]}},"type":"object","title":"ServiceVoiceConfig","description":"Per-service voice pipeline tuning. Overrides workspace/env defaults.\n\nEach field is optional — None means inherit from the layer above\n(workspace VoiceSettings → env vars → hardcoded defaults).\n\nA field is read only by the families whose ``reads`` list it (``platform_lib.config.voice_families.specs``); a save\naccepts the others and reports them as ignored."},"ServiceForwardingResponse":{"properties":{"forward_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"warm_transfer_answer_timeout_s":{"type":"integer","maximum":55,"minimum":10,"title":"Warm Transfer Answer Timeout S","default":30},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue","default":"hand_over"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss","default":"hand_back"},"receiver_classifier":{"type":"string","enum":["twilio_amd","platform"],"title":"Receiver Classifier","default":"twilio_amd"},"approved_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Approved Destinations"},"fallback_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"test_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":20,"title":"Test Destinations"},"verification_callers":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/PhoneE164"},"type":"object","maxProperties":10,"title":"Verification Callers"},"hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"after_hours_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"default_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"transfer_reasons":{"items":{"$ref":"#/components/schemas/TransferReason"},"type":"array","maxItems":20,"title":"Transfer Reasons"},"destination_hours":{"additionalProperties":{"$ref":"#/components/schemas/DestinationHours"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Destination Hours"},"unsupported_language_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"type":"object","required":["forward_to","warm_transfer","warm_transfer_answer_timeout_s","warm_transfer_on_queue","warm_transfer_on_miss","receiver_classifier","approved_destinations","fallback_to","test_destinations","verification_callers","hours","after_hours_destination","default_destination","transfer_reasons","destination_hours","unsupported_language_destination"],"title":"ServiceForwardingResponse","description":"Forwarding responses always include defaults; the input keeps its existing schema name."},"ContactLine":{"properties":{"kind":{"type":"string","enum":["crisis","domestic_violence","child_abuse","poison_help","clinical_24h","front_desk"],"title":"Kind"},"number":{"type":"string","maxLength":16,"minLength":2,"title":"Number"},"spoken_name":{"$ref":"#/components/schemas/NameString","maxLength":80},"spoken_name_es":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"area":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"available_24h":{"type":"boolean","title":"Available 24H"},"may_read_aloud":{"type":"boolean","title":"May Read Aloud"}},"additionalProperties":false,"type":"object","required":["kind","number","spoken_name","available_24h","may_read_aloud"],"title":"ContactLine","description":"A service's declared contact line."},"ServiceOutputChecks":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/PhiUnverifiedCheck"},"blocklisted_number":{"$ref":"#/components/schemas/BlocklistedNumberCheck"},"misspelled_word":{"$ref":"#/components/schemas/MisspelledWordCheck"},"dosing_or_med_change":{"$ref":"#/components/schemas/CheckerLabelCheck"},"diagnosis":{"$ref":"#/components/schemas/CheckerLabelCheck"},"false_confirmation":{"$ref":"#/components/schemas/CheckerLabelCheck"},"dispatch_promise":{"$ref":"#/components/schemas/CheckerLabelCheck"},"action_promise":{"$ref":"#/components/schemas/ActionPromiseCheck"},"unbacked_action_claims":{"$ref":"#/components/schemas/UnbackedActionClaimsCheck"}},"additionalProperties":false,"type":"object","title":"ServiceOutputChecks"},"ServiceEmergencyFloor":{"properties":{"text_self_harm":{"$ref":"#/components/schemas/TextSelfHarmFloor"},"text_medical":{"$ref":"#/components/schemas/TextMedicalFloor"},"held_text":{"$ref":"#/components/schemas/HeldTextFloor"}},"additionalProperties":false,"type":"object","title":"ServiceEmergencyFloor"},"EffectiveHarness":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","title":"Harness"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"The release tag, or ``in-tree``. None when ``error`` is set."},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"source":{"type":"string","enum":["pin","harness_default","invalid_pin"],"title":"Source","description":"``invalid_pin``: the service stores a pin of this harness that no longer validates. The entry names no\nrelease, so the harness has nothing to run until the pin is set again. A ``pin`` or ``harness_default`` with an\n``error`` names a release the platform may no longer run, and names no release either."},"contract_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Version","description":"The contract the release was built on, from the registry. None for ``in-tree`` and when ``error`` is set."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why the harness has nothing to run on the service: its stored pin is invalid, or its pin or default names a\nrelease or a policy the platform may no longer run (revoked, unregistered, or off the supported contract range),\nor its pin names a harness the service does not run.\nSet, the entry names no release and no policy, so the harness has nothing to run. None otherwise."},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"The policy release the harness runs the values of: the pin's, else the default's. None when neither names one,\nand when ``error`` is set."}},"type":"object","required":["kind","harness","repo","tag","asset","sha256","source","contract_version","error","policy"],"title":"EffectiveHarness","description":"The release one harness runs on a service, and where that came from. ``repo``, ``asset`` and ``sha256`` are\nNone for ``in-tree``. agent-engine loads the wheel it baked at ``/opt/harnesses/<sha256>/``."},"HarnessKind":{"type":"string","enum":["voice","text"]},"PolicyRef":{"properties":{"repo":{"type":"string","maxLength":128,"minLength":1,"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag"},"asset":{"type":"string","maxLength":256,"minLength":1,"title":"Asset"},"sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256"}},"type":"object","required":["repo","tag","asset","sha256"],"title":"PolicyRef","description":"A policy release registered in ``policy_releases.json``, named exactly: one family's values for the settings\nCore declares. The image bakes it at ``/opt/harness-policies/<sha256>.json``."}}},"paths":{"/v1/{workspace_id}/services":{"post":{"tags":["Services"],"summary":"Create a service","description":"Create a new service linking an agent and, for one that runs workflow agent versions, a context graph. Validates that agent_id and context_graph_id exist in the workspace and that every version set name and pinned version is valid, dynamic behavior pins included (see the version set upsert). A service created without context_graph_id binds no context graph: every version set of it has to run an agent version whose program is direct and pin no context graph version, or the create is refused with 422 `context_graph_required`. Requires `Service.create` permission, `Service.update` to name a `caller_verification_endpoint_id`, to set any `output_checks` or `emergency_floor` key away from what it would inherit, to declare `declared_languages` or to turn on `conversation_audit`. Every change to `allow_unverified_integration_results` is audited.","operationId":"create-service","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServiceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Not found."},"409":{"description":"Name already taken, or a pinned dynamic behavior set is archived."},"422":{"description":"Invalid request body."}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## Get a service

> Retrieve a service by ID. Requires \`Service.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"ServiceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id","description":"The context graph the service binds. Null on a service that binds none: it runs direct programs only."},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"context_graph_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Graph Name"},"keyterms":{"items":{"type":"string"},"type":"array","title":"Keyterms"},"is_active":{"type":"boolean","title":"Is Active"},"version_sets":{"additionalProperties":{"$ref":"#/components/schemas/VersionSet-Output"},"type":"object","title":"Version Sets"},"tags":{"items":{"$ref":"#/components/schemas/ServiceTag"},"type":"array","title":"Tags"},"tool_capacity":{"type":"integer","title":"Tool Capacity"},"channel_type":{"type":"string","enum":["voice","text"],"title":"Channel Type","default":"voice"},"environment":{"type":"string","enum":["sandbox","production"],"title":"Environment","default":"production"},"demo_mode":{"type":"boolean","title":"Demo Mode","description":"Voice calls on this service open with only the recording notice, without the AI disclosure. For demos only,\nnever for a service that takes real callers.","default":false},"platform_caller_verification":{"type":"boolean","title":"Platform Caller Verification","description":"Whether the platform verifies a caller who may match a patient record by full name and date of\nbirth. Off, the agent never asks a caller to verify, and every platform tool that reads a patient\nrecord refuses. The service's integration tools run either way, unless one of them verifies its\ncallers (`caller_verification_endpoint_id`).","default":true},"caller_verification_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Caller Verification Endpoint Id","description":"The integration endpoint that verifies this service's callers, or null when none does."},"allow_unverified_integration_results":{"type":"boolean","title":"Allow Unverified Integration Results","description":"A dangerous bypass, off by default. On, results from the service's integration endpoints, reads and\nwrites, never count as a patient record for the output checker's unverified-caller check\n(`output_checks.phi_unverified`, which runs only on a service that sets it to `cut`), so the agent may read\nthem back to any caller, verified or not. Writes are still held to everything else, the platform's own\npatient reads still refuse until the caller verifies, and data queries and skills still count. Never on\nbeside `caller_verification_endpoint_id`. Every change is audited.","default":false},"voice_config":{"anyOf":[{"$ref":"#/components/schemas/ServiceVoiceConfig-Output"},{"type":"null"}]},"accepted_context":{"items":{"$ref":"#/components/schemas/ContextKeySpec"},"type":"array","title":"Accepted Context"},"crisis_call_911_reply":{"anyOf":[{"$ref":"#/components/schemas/CrisisCall911Reply"},{"type":"null"}]},"contact_lines":{"items":{"$ref":"#/components/schemas/ContactLine"},"type":"array","maxItems":50,"title":"Contact Lines","description":"Declared direct contact lines. Public emergency and N11 short codes are refused."},"medical_emergency_ending":{"type":"string","enum":["stay_on_line","end_after_script"],"title":"Medical Emergency Ending","description":"How a voice call ends after a medical emergency's script: ``stay_on_line`` (the default) or\n``end_after_script``, which plays the authored closing line and then ends the call. A self-harm or\ncrisis statement keeps the call open in either.","default":"stay_on_line"},"output_checks":{"$ref":"#/components/schemas/ServiceOutputChecks","description":"The checks the service's calls run: its own block over the workspace defaults. Where each value comes from:\n`GET /v1/{workspace_id}/services/{service_id}/safety`."},"emergency_floor":{"$ref":"#/components/schemas/ServiceEmergencyFloor","description":"How the floor acts on the service's text conversations: its own block over the workspace defaults. Where each\nvalue comes from: `GET /v1/{workspace_id}/services/{service_id}/safety`."},"conversation_audit":{"$ref":"#/components/schemas/ConversationAuditSettings","description":"The post-call transcript quality audit, off unless the service turns it on."},"declared_languages":{"anyOf":[{"items":{"type":"string","enum":["en","es","ar","fr","de","pt","zh","ja","ko"]},"type":"array","maxItems":9,"minItems":1},{"type":"null"}],"title":"Declared Languages","description":"The languages this service serves, as ISO 639-1 codes. None: none declared."},"effective_harnesses":{"anyOf":[{"items":{"$ref":"#/components/schemas/EffectiveHarness"},"type":"array"},{"type":"null"}],"title":"Effective Harnesses","description":"The release each voice and text harness that has a platform default runs on the service's calls: its pin, else\nthe harness default. Set by the single-service GET, left out of lists. `GET .../services/{service_id}/harnesses`\nlists only the harnesses the service runs."},"is_system":{"type":"boolean","title":"Is System","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","description","agent_id","context_graph_id","keyterms","is_active","version_sets","tags","tool_capacity","created_at","updated_at"],"title":"ServiceResponse"},"VersionSet-Output":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"LLMConfig":{"properties":{"llm_name":{"type":"string","title":"Llm Name"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"experience_controls":{"anyOf":[{"$ref":"#/components/schemas/LLMExperienceControls"},{"type":"null"}]}},"type":"object","required":["llm_name"],"title":"LLMConfig"},"LLMExperienceControls":{"properties":{"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Top P"}},"additionalProperties":false,"type":"object","title":"LLMExperienceControls","description":"Typed model-tuning controls for a version set's LLM preference.\n\n``params`` stays available as a provider-specific escape hatch. These three fields are the ones deployments\nuse. Token budgets are left out on purpose, so a version set cannot cut a response short by accident."},"VersionSetBehaviorPin":{"properties":{"set_id":{"type":"string","format":"uuid","title":"Set Id","description":"The library set. It belongs to the service's workspace and isn't archived."},"version":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Version","description":"The version of the set the service runs. A later version of the set changes nothing until the pin moves."},"enabled":{"type":"boolean","title":"Enabled","description":"A disabled pin stays on the version set and is never offered.","default":true},"states":{"items":{"$ref":"#/components/schemas/NameString"},"type":"array","maxItems":200,"title":"States","description":"The action and data collection states it applies in. Empty: every one."}},"additionalProperties":false,"type":"object","required":["set_id","version"],"title":"VersionSetBehaviorPin","description":"One library set a version set uses, at one version."},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"ServiceTag":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["key"],"title":"ServiceTag"},"ServiceVoiceConfig-Output":{"properties":{"silence_policy":{"$ref":"#/components/schemas/SilencePolicy"},"max_buffer_delay_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Buffer Delay Ms"},"eager_eot_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eager Eot Threshold"},"eot_timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eot Timeout Ms"},"filler_style":{"type":"string","enum":["backchannel","phrase","silent"],"title":"Filler Style","default":"backchannel"},"filler_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filler Vocabulary"},"backchannel_delay_ms":{"type":"integer","title":"Backchannel Delay Ms","default":400},"max_response_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Sentences"},"max_response_words":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Words"},"barge_in_min_speech_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Min Speech S"},"barge_in_cooldown_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Cooldown S"},"held_turn_policy":{"type":"string","enum":["always","judged","never"],"title":"Held Turn Policy","description":"What a realtime voice call does with a caller turn committed while the agent's own opening, the notice and the greeting, is still playing. always: the turn is answered once the opening ends. judged: the turn is answered only when it asks for something the opening did not cover, so a greeting, an acknowledgement or an echo of the opening is left unanswered, and a turn that cannot be judged is answered. never: the turn is not answered, and the caller's next turn is answered as usual. Every turn is still recorded and checked for a medical emergency, whatever the setting. It applies to a call the agent opens itself; a call that waits for the caller to speak first answers the first turn.","default":"always"},"min_tts_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Tts Speed"},"post_eot_pause_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Eot Pause Ms"},"transition_deadline_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transition Deadline Ms"},"progress_interval_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Interval Ms"},"empathy_hold_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Empathy Hold Ms"},"filler_cooldown_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filler Cooldown Ms"},"progress_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Progress Vocabulary"},"tts_provider":{"anyOf":[{"type":"string","enum":["cartesia","elevenlabs"]},{"type":"null"}],"title":"Tts Provider"},"tts_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tts Config"},"language_providers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LanguageProviderEntry"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Language Providers"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider"},"realtime_voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"type":"null"}],"title":"Realtime Voice","description":"Deprecated built-in OpenAI Realtime voice shortcut. Use realtime.voice instead; the two fields are mutually exclusive.","deprecated":true},"realtime":{"anyOf":[{"$ref":"#/components/schemas/RealtimeSessionConfig"},{"type":"null"}]},"eleven_realtime":{"anyOf":[{"$ref":"#/components/schemas/ElevenRealtimeSessionConfig"},{"type":"null"}]},"grok_voice":{"anyOf":[{"$ref":"#/components/schemas/GrokVoiceSessionConfig"},{"type":"null"}]},"gpt_live":{"anyOf":[{"$ref":"#/components/schemas/GptLiveSessionConfig"},{"type":"null"}]},"phonic":{"anyOf":[{"$ref":"#/components/schemas/PhonicSessionConfig"},{"type":"null"}]},"readiness_requires":{"anyOf":[{"items":{"type":"string","enum":["openai_realtime","decisions","warehouse"]},"type":"array","maxItems":10},{"type":"null"}],"title":"Readiness Requires"},"max_concurrent_calls":{"type":"integer","maximum":100,"minimum":1,"title":"Max Concurrent Calls","default":60},"max_calls_per_caller":{"type":"integer","maximum":100,"minimum":1,"title":"Max Calls Per Caller","default":2},"answer_hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"forwarding":{"anyOf":[{"$ref":"#/components/schemas/ServiceForwardingResponse"},{"type":"null"}]}},"type":"object","title":"ServiceVoiceConfig","description":"Per-service voice pipeline tuning. Overrides workspace/env defaults.\n\nEach field is optional — None means inherit from the layer above\n(workspace VoiceSettings → env vars → hardcoded defaults).\n\nA field is read only by the families whose ``reads`` list it (``platform_lib.config.voice_families.specs``); a save\naccepts the others and reports them as ignored."},"SilencePolicy":{"properties":{"max_closing_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Closing Attempts","default":2},"max_cap_warning_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Cap Warning Attempts","default":2},"cap_warning_retry_seconds":{"type":"number","maximum":60,"minimum":1,"title":"Cap Warning Retry Seconds","default":10}},"additionalProperties":false,"type":"object","title":"SilencePolicy","description":"Per-service delivery retries around the signed silence cadence."},"LanguageProviderEntry":{"properties":{"provider":{"type":"string","enum":["cartesia","elevenlabs"],"title":"Provider"},"config":{"additionalProperties":true,"type":"object","maxProperties":20,"title":"Config"}},"type":"object","required":["provider"],"title":"LanguageProviderEntry","description":"Per-language TTS provider configuration."},"RealtimeSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","enum":["gpt-realtime-2.1","gpt-realtime-2.1-mini"]},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"$ref":"#/components/schemas/RealtimeCustomVoice"},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.25},{"type":"null"}],"title":"Speed"},"noise_reduction":{"anyOf":[{"type":"string","enum":["near_field","far_field","off"]},{"type":"null"}],"title":"Noise Reduction","description":"Input noise reduction. Omit or set null to use the Platform default; set 'off' to disable it."},"noise_reduction_strength":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Noise Reduction Strength","description":"OpenAI audio.input.noise_reduction.strength. Higher values suppress more noise.","docs_url":"https://developers.openai.com/api/reference/resources/realtime/client-events"},"transcription":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTranscriptionConfig"},{"type":"null"}]},"turn_detection":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/RealtimeServerVadConfig"},{"$ref":"#/components/schemas/RealtimeSemanticVadConfig"}],"discriminator":{"propertyName":"type","mapping":{"semantic_vad":"#/components/schemas/RealtimeSemanticVadConfig","server_vad":"#/components/schemas/RealtimeServerVadConfig"}}},{"type":"null"}],"title":"Turn Detection"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"max_output_tokens":{"anyOf":[{"type":"integer","maximum":4096,"minimum":1},{"type":"string","const":"inf"},{"type":"null"}],"title":"Max Output Tokens"},"truncation":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTruncationConfig"},{"type":"null"}]},"required_tool_on_first_caller_turn":{"anyOf":[{"type":"string","maxLength":256,"minLength":1,"pattern":"^[A-Za-z_][A-Za-z0-9_.:-]*$"},{"type":"null"}],"title":"Required Tool On First Caller Turn","description":"Force one named function on the first caller-generated response, excluding the inbound greeting, then restore automatic tool choice. Runtime accepts this only for source_override='test' sessions and tools that the executor verifies are read-only or side-effect-free."}},"additionalProperties":false,"type":"object","title":"RealtimeSessionConfig","description":"Typed OpenAI Realtime session controls for a service."},"RealtimeCustomVoice":{"properties":{"id":{"type":"string","maxLength":256,"minLength":1,"pattern":"^voice_[A-Za-z0-9_-]+$","title":"Id"}},"additionalProperties":false,"type":"object","required":["id"],"title":"RealtimeCustomVoice","description":"Approved OpenAI custom voice reference."},"RealtimeTranscriptionConfig":{"properties":{"model":{"type":"string","const":"gpt-transcribe","title":"Model","default":"gpt-transcribe"},"language":{"anyOf":[{"type":"string","enum":["af","ar","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","es","et","fa","fi","fr","gl","gu","he","hi","hr","hu","hy","id","is","it","iw","ja","ka","kk","kn","ko","lt","lv","mi","mk","ml","mr","ms","nb","ne","nl","no","pl","pt","ro","ru","sk","sl","sr","sv","sw","ta","te","th","tl","tr","uk","ur","vi","zh","afr","amh","ara","aze","bel","ben","bos","bul","cat","ces","cmn","cym","dan","deu","ell","eng","est","fas","fil","fin","fra","gle","glg","guj","heb","hin","hrv","hun","hye","ind","isl","ita","jpn","kan","kat","kaz","kor","lav","lit","mal","mar","mkd","mon","mri","msa","mya","nep","nld","nor","pol","por","ron","rus","slk","slv","som","spa","srp","swa","swe","tam","tel","tgl","tha","tur","ukr","urd","vie","yue","zh-cn","zh-hk","zh-tw"]},{"type":"null"}],"title":"Language"},"prompt":{"anyOf":[{"type":"string","maxLength":1024,"minLength":1},{"type":"null"}],"title":"Prompt"},"keywords":{"anyOf":[{"items":{"type":"string","maxLength":256,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keywords","description":"Literal transcription hints. Unset, use the service keyterms.","docs_url":"https://developers.openai.com/api/docs/guides/transcription"}},"additionalProperties":false,"type":"object","title":"RealtimeTranscriptionConfig","description":"Asynchronous caller-audio transcription used for transcripts and observability."},"RealtimeServerVadConfig":{"properties":{"type":{"type":"string","const":"server_vad","title":"Type","default":"server_vad"},"threshold":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Threshold"},"prefix_padding_ms":{"anyOf":[{"type":"integer","maximum":5000,"minimum":0},{"type":"null"}],"title":"Prefix Padding Ms"},"silence_duration_ms":{"anyOf":[{"type":"integer","maximum":3000,"minimum":200},{"type":"null"}],"title":"Silence Duration Ms"}},"additionalProperties":false,"type":"object","title":"RealtimeServerVadConfig","description":"Volume-based turn detection controls."},"RealtimeSemanticVadConfig":{"properties":{"type":{"type":"string","const":"semantic_vad","title":"Type","default":"semantic_vad"},"eagerness":{"type":"string","enum":["auto","low","medium","high"],"title":"Eagerness","default":"auto"}},"additionalProperties":false,"type":"object","title":"RealtimeSemanticVadConfig","description":"Semantic turn detection controls."},"RealtimeTruncationConfig":{"properties":{"type":{"type":"string","enum":["auto","disabled","retention_ratio"],"title":"Type","description":"Use auto or retention_ratio. Legacy disabled values are readable but refused by voice sessions.","default":"auto","docs_url":"https://developers.openai.com/api/docs/guides/voice-latency-cost?api=realtime#truncation"},"retention_ratio":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Retention Ratio"},"post_instructions_tokens":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Post Instructions Tokens"}},"additionalProperties":false,"type":"object","title":"RealtimeTruncationConfig","description":"Conversation context truncation strategy."},"ElevenRealtimeSessionConfig":{"properties":{"voice":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Voice"},"model":{"anyOf":[{"type":"string","const":"eleven_realtime_v1_mini"},{"type":"null"}],"title":"Model"}},"additionalProperties":false,"type":"object","required":["voice"],"title":"ElevenRealtimeSessionConfig","description":"Eleven Realtime controls for a service: the ElevenLabs voice it speaks in, and the model."},"GrokVoiceSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"grok-voice-3.0"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["altair","ara","atlas","aurora","carina","castor","celeste","cosmo","eve","helios","helix","iris","kepler","leo","liora","lumen","luna","lux","naksh","orion","perseus","rex","rigel","sal","sirius","ursa","zagan","zenith"]},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.7},{"type":"null"}],"title":"Speed"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","high"]},{"type":"null"}],"title":"Reasoning Effort"},"keyterms":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keyterms","description":"Transcription hints. Unset, use the service keyterms. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"},"language_hint":{"anyOf":[{"type":"string","enum":["en","ar-EG","ar-SA","ar-AE","bn","zh","fr","de","hi","id","it","ja","ko","pt-BR","pt-PT","ru","es-MX","es-ES","tr","vi"]},{"type":"null"}],"title":"Language Hint"},"replace":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":100,"minLength":1},"propertyNames":{"maxLength":100,"minLength":1},"type":"object","maxProperties":100,"minProperties":1},{"type":"null"}],"title":"Replace","description":"Pronunciation replacements: a phrase the agent says mapped to how xAI speaks it. Matched case-insensitively on whole words, longest key first. Keys and values are stripped, and keys that differ only by case are refused. xAI changes the audio and not its transcript; the runtime applies the same map to the transcript before the output checks read it, so they judge what the caller hears. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"}},"additionalProperties":false,"type":"object","title":"GrokVoiceSessionConfig","description":"Grok Voice controls for a service. Every field is optional: the provider supplies the defaults."},"GptLiveSessionConfig":{"properties":{"model":{"type":"string","enum":["gpt-live-1","gpt-live-1.1-leopard-2-alpha"],"title":"Model","default":"gpt-live-1"},"voice":{"type":"string","enum":["alloy","ash","ballad","beacon","bossa","brise","cedar","cinder","coral","delta","echo","flitz","gleam","harema","juni","marin","meridian","nira","noeul","nuri","quartz","ripple","sage","shida","shimmer","sillage","stone","tempo","verse","vesper","willow"],"title":"Voice","default":"marin"}},"additionalProperties":false,"type":"object","title":"GptLiveSessionConfig","description":"Live startup settings. Language comes from the agent's instructions, not a protocol field."},"PhonicSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"phonic-1"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["sabrina","grant","sandeep","landon","shelby","mason","virginia","eleanor","gabrielle","paula","nolan","roberto","hikari","tomoya","eloise","jerome","daniela","juliana","valeria","eduardo","henri","kourtney","kaspar","mei","stella","karoline","amelia","william","joon","hana","mia","derek","divya","alice","karin","phillip","jackson","gina","michelle"]},{"type":"null"}],"title":"Voice"},"intelligence_level":{"anyOf":[{"type":"string","enum":["standard","high"]},{"type":"null"}],"title":"Intelligence Level"},"audio_speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.5},{"type":"null"}],"title":"Audio Speed"},"vad":{"anyOf":[{"$ref":"#/components/schemas/PhonicVadConfig"},{"type":"null"}]},"boosted_keywords":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Boosted Keywords","description":"Recognition hints. Unset, use the service keyterms."},"pronunciation_dictionary":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhonicPronunciation"},"type":"array","maxItems":100},{"type":"null"}],"title":"Pronunciation Dictionary"},"multilingual_mode":{"anyOf":[{"type":"string","enum":["auto","request","initial"]},{"type":"null"}],"title":"Multilingual Mode"}},"additionalProperties":false,"type":"object","title":"PhonicSessionConfig","description":"Phonic controls for a service."},"PhonicVadConfig":{"properties":{"threshold":{"anyOf":[{"type":"number","maximum":0.8,"minimum":0.2},{"type":"null"}],"title":"Threshold"},"prebuffer_duration_ms":{"anyOf":[{"type":"integer","maximum":2000,"minimum":0},{"type":"null"}],"title":"Prebuffer Duration Ms"},"min_speech_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Speech Duration Ms"},"min_silence_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Silence Duration Ms"},"min_words_to_interrupt":{"anyOf":[{"type":"integer","maximum":10,"minimum":1},{"type":"null"}],"title":"Min Words To Interrupt"}},"additionalProperties":false,"type":"object","title":"PhonicVadConfig","description":"Phonic's server VAD. Unset fields keep Phonic's defaults."},"PhonicPronunciation":{"properties":{"word":{"type":"string","maxLength":30,"minLength":1,"title":"Word"},"pronunciation":{"type":"string","maxLength":50,"minLength":1,"title":"Pronunciation"}},"additionalProperties":false,"type":"object","required":["word","pronunciation"],"title":"PhonicPronunciation"},"StaffedHours":{"properties":{"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone"},"windows":{"items":{"$ref":"#/components/schemas/StaffedWindow"},"type":"array","maxItems":50,"minItems":1,"title":"Windows"},"closed_on_us_federal_holidays":{"type":"boolean","title":"Closed On Us Federal Holidays","default":false},"closed_dates":{"items":{"type":"string","maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"type":"array","maxItems":100,"title":"Closed Dates"}},"type":"object","required":["timezone","windows"],"title":"StaffedHours","description":"When the people who answer a service's lines are there.\n\nA weekday with no window is closed all day. A closed date, and a federal holiday when the service closes for\nthem, close the whole day whatever the windows say. Everything else is open exactly where a window covers the\nwall-clock time of the zone."},"StaffedWindow":{"properties":{"day":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"title":"Day"},"open":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Open"},"close":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Close"}},"type":"object","required":["day","open","close"],"title":"StaffedWindow","description":"One stretch of one weekday that people answer: from ``open`` up to, not including, ``close``."},"ServiceForwardingResponse":{"properties":{"forward_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"warm_transfer_answer_timeout_s":{"type":"integer","maximum":55,"minimum":10,"title":"Warm Transfer Answer Timeout S","default":30},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue","default":"hand_over"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss","default":"hand_back"},"receiver_classifier":{"type":"string","enum":["twilio_amd","platform"],"title":"Receiver Classifier","default":"twilio_amd"},"approved_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Approved Destinations"},"fallback_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"test_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":20,"title":"Test Destinations"},"verification_callers":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/PhoneE164"},"type":"object","maxProperties":10,"title":"Verification Callers"},"hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"after_hours_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"default_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"transfer_reasons":{"items":{"$ref":"#/components/schemas/TransferReason"},"type":"array","maxItems":20,"title":"Transfer Reasons"},"destination_hours":{"additionalProperties":{"$ref":"#/components/schemas/DestinationHours"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Destination Hours"},"unsupported_language_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"type":"object","required":["forward_to","warm_transfer","warm_transfer_answer_timeout_s","warm_transfer_on_queue","warm_transfer_on_miss","receiver_classifier","approved_destinations","fallback_to","test_destinations","verification_callers","hours","after_hours_destination","default_destination","transfer_reasons","destination_hours","unsupported_language_destination"],"title":"ServiceForwardingResponse","description":"Forwarding responses always include defaults; the input keeps its existing schema name."},"DialE164":{"type":"string","maxLength":16,"minLength":2},"PhoneE164":{"type":"string","maxLength":16,"minLength":2},"TransferReason":{"properties":{"key":{"$ref":"#/components/schemas/TransferReasonKey"},"description":{"$ref":"#/components/schemas/DescriptionString","maxLength":200}},"additionalProperties":false,"type":"object","required":["key","description"],"title":"TransferReason","description":"One reason a service's transfers name (``ServiceForwardingConfig.transfer_reasons``)."},"TransferReasonKey":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9_-]*[a-z0-9]$"},"DescriptionString":{"type":"string","maxLength":2000},"DestinationHours":{"properties":{"hours":{"$ref":"#/components/schemas/StaffedHours"},"after_hours":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["hours"],"title":"DestinationHours","description":"One approved line's own staffed hours and after-hours line, in place of its service's\n(``ServiceForwardingConfig.destination_hours``)."},"ContextKeySpec":{"properties":{"key":{"$ref":"#/components/schemas/SlugString"},"type":{"type":"string","enum":["string","number"],"title":"Type"},"description":{"$ref":"#/components/schemas/DescriptionString"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["key","type","description","required"],"title":"ContextKeySpec","description":"One key a conversation may supply as start-time context for a service.\n\nThe value is validated against ``type`` at conversation start; a tool can then\nbind the key to one of its parameters (injected, hidden from the model)."},"SlugString":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$"},"CrisisCall911Reply":{"properties":{"en":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1},"es":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1}},"additionalProperties":false,"type":"object","required":["en","es"],"title":"CrisisCall911Reply","description":"Per-service wording added when a caller already in crisis asks for emergency dispatch."},"ContactLine":{"properties":{"kind":{"type":"string","enum":["crisis","domestic_violence","child_abuse","poison_help","clinical_24h","front_desk"],"title":"Kind"},"number":{"type":"string","maxLength":16,"minLength":2,"title":"Number"},"spoken_name":{"$ref":"#/components/schemas/NameString","maxLength":80},"spoken_name_es":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"area":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"available_24h":{"type":"boolean","title":"Available 24H"},"may_read_aloud":{"type":"boolean","title":"May Read Aloud"}},"additionalProperties":false,"type":"object","required":["kind","number","spoken_name","available_24h","may_read_aloud"],"title":"ContactLine","description":"A service's declared contact line."},"ServiceOutputChecks":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/PhiUnverifiedCheck"},"blocklisted_number":{"$ref":"#/components/schemas/BlocklistedNumberCheck"},"misspelled_word":{"$ref":"#/components/schemas/MisspelledWordCheck"},"dosing_or_med_change":{"$ref":"#/components/schemas/CheckerLabelCheck"},"diagnosis":{"$ref":"#/components/schemas/CheckerLabelCheck"},"false_confirmation":{"$ref":"#/components/schemas/CheckerLabelCheck"},"dispatch_promise":{"$ref":"#/components/schemas/CheckerLabelCheck"},"action_promise":{"$ref":"#/components/schemas/ActionPromiseCheck"},"unbacked_action_claims":{"$ref":"#/components/schemas/UnbackedActionClaimsCheck"}},"additionalProperties":false,"type":"object","title":"ServiceOutputChecks"},"PhiUnverifiedCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"PhiUnverifiedCheck"},"BlocklistedNumberCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"BlocklistedNumberCheck"},"MisspelledWordCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"MisspelledWordCheck"},"CheckerLabelCheck":{"properties":{"mode":{"type":"string","enum":["cut","count","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"CheckerLabelCheck"},"ActionPromiseCheck":{"properties":{"mode":{"type":"string","enum":["retry","off"],"title":"Mode","default":"retry"}},"additionalProperties":false,"type":"object","title":"ActionPromiseCheck"},"UnbackedActionClaimsCheck":{"properties":{"mode":{"type":"string","enum":["off","log","enforce"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"UnbackedActionClaimsCheck"},"ServiceEmergencyFloor":{"properties":{"text_self_harm":{"$ref":"#/components/schemas/TextSelfHarmFloor"},"text_medical":{"$ref":"#/components/schemas/TextMedicalFloor"},"held_text":{"$ref":"#/components/schemas/HeldTextFloor"}},"additionalProperties":false,"type":"object","title":"ServiceEmergencyFloor"},"TextSelfHarmFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"TextSelfHarmFloor"},"TextMedicalFloor":{"properties":{"mode":{"type":"string","enum":["enforce","shadow","off"],"title":"Mode","default":"shadow"}},"additionalProperties":false,"type":"object","title":"TextMedicalFloor"},"HeldTextFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"HeldTextFloor"},"ConversationAuditSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"checks":{"items":{"$ref":"#/components/schemas/ConversationAuditCheck"},"type":"array","maxItems":4,"minItems":1,"title":"Checks"},"threshold":{"type":"integer","maximum":100,"minimum":1,"title":"Threshold","default":80}},"additionalProperties":false,"type":"object","title":"ConversationAuditSettings"},"ConversationAuditCheck":{"type":"string","enum":["obvious_errors","missed_escalation","wrong_information","missed_safety_event"]},"EffectiveHarness":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","title":"Harness"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"The release tag, or ``in-tree``. None when ``error`` is set."},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"source":{"type":"string","enum":["pin","harness_default","invalid_pin"],"title":"Source","description":"``invalid_pin``: the service stores a pin of this harness that no longer validates. The entry names no\nrelease, so the harness has nothing to run until the pin is set again. A ``pin`` or ``harness_default`` with an\n``error`` names a release the platform may no longer run, and names no release either."},"contract_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Version","description":"The contract the release was built on, from the registry. None for ``in-tree`` and when ``error`` is set."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why the harness has nothing to run on the service: its stored pin is invalid, or its pin or default names a\nrelease or a policy the platform may no longer run (revoked, unregistered, or off the supported contract range),\nor its pin names a harness the service does not run.\nSet, the entry names no release and no policy, so the harness has nothing to run. None otherwise."},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"The policy release the harness runs the values of: the pin's, else the default's. None when neither names one,\nand when ``error`` is set."}},"type":"object","required":["kind","harness","repo","tag","asset","sha256","source","contract_version","error","policy"],"title":"EffectiveHarness","description":"The release one harness runs on a service, and where that came from. ``repo``, ``asset`` and ``sha256`` are\nNone for ``in-tree``. agent-engine loads the wheel it baked at ``/opt/harnesses/<sha256>/``."},"HarnessKind":{"type":"string","enum":["voice","text"]},"PolicyRef":{"properties":{"repo":{"type":"string","maxLength":128,"minLength":1,"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag"},"asset":{"type":"string","maxLength":256,"minLength":1,"title":"Asset"},"sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256"}},"type":"object","required":["repo","tag","asset","sha256"],"title":"PolicyRef","description":"A policy release registered in ``policy_releases.json``, named exactly: one family's values for the settings\nCore declares. The image bakes it at ``/opt/harness-policies/<sha256>.json``."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}":{"get":{"tags":["Services"],"summary":"Get a service","description":"Retrieve a service by ID. Requires `Service.view` permission.","operationId":"get-service","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Update a service

> Update a service's configuration. A field left out keeps what is stored. An explicit \`null\` clears \`voice\_config\`, \`output\_checks\`, \`emergency\_floor\`, \`caller\_verification\_endpoint\_id\` and \`declared\_languages\`, and is refused (422) on \`version\_sets\`, which replaces the whole map and always needs \`release\`. A \`caller\_verification\_endpoint\_id\` has to be an endpoint of one of the workspace's integrations that declares \`declarations.verifies\` and never waits for approval, on a service with \`platform\_caller\_verification\` and \`allow\_unverified\_integration\_results\` false. Every change to \`allow\_unverified\_integration\_results\` is audited. A version set sent without \`dynamic\_behavior\_sets\` keeps the pins the stored version set of that name has, and \`\[]\` clears them. channel-manager decides which numbers a call can be transferred to; the service names which of them the agent uses. A save that adds a number a call can dial to \`voice\_config.forwarding\` (\`forward\_to\`, \`fallback\_to\`, an approved destination or a test line) holds every such number of the block to the voice use cases bound to the service: each has to be on the use case's \`allowed\_forwarding\_numbers\` in channel-manager, read fresh, and none may be one of its own numbers. A service bound to both its inbound and its outbound voice use case is held to both lists, since a transfer is gated by the list of its call's own direction. The 422 names the use case, its \`channel\` and the destinations' labels, never a number, with a \`message\` saying to add the numbers to the use case in channel-manager first, and the write is refused with 503 when channel-manager cannot be read. A service's harness pins are checked again as \`PUT .../harness-pins\` checks them, so a \`channel\_type\`, family, agent or version set change that leaves a pin that no longer fits, or a stored pin that no longer validates, is refused with 422, with the same \`code\` and \`fields\` in its plan. An update that changes the harness pins or what their fit depends on lands only on the service as this request read it: a change by another writer in between is a 409 and nothing is stored. Every other update is last-write-wins, except that it stores the harness pins as the service holds them when it writes, so it never reverts a pin set after this request read the service. Requires \`Service.update\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"UpdateServiceRequest":{"properties":{"name":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"description":{"anyOf":[{"$ref":"#/components/schemas/DescriptionString"},{"type":"null"}]},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id","description":"Binds the service to this context graph, one of this workspace's. Leaving it out, or sending null, keeps what\nis stored. Setting it on a service that binds none is how the service comes to run workflow agent versions."},"keyterms":{"anyOf":[{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":500},{"type":"null"}],"title":"Keyterms"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"version_sets":{"additionalProperties":{"$ref":"#/components/schemas/VersionSet-Input"},"type":"object","title":"Version Sets","description":"Replaces the whole map: a version set left out of it is dropped, and `release` is required. Leaving the field\nout keeps what is stored. It cannot be cleared, so `null` is refused."},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/ServiceTag"},"type":"array","maxItems":50},{"type":"null"}],"title":"Tags"},"tool_capacity":{"anyOf":[{"type":"integer","maximum":10,"minimum":1},{"type":"null"}],"title":"Tool Capacity"},"channel_type":{"anyOf":[{"type":"string","enum":["voice","text"]},{"type":"null"}],"title":"Channel Type"},"environment":{"anyOf":[{"type":"string","enum":["sandbox","production"]},{"type":"null"}],"title":"Environment"},"demo_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Demo Mode","description":"Voice calls on this service open with only the recording notice, without the AI disclosure. For demos only,\nnever for a service that takes real callers."},"platform_caller_verification":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Platform Caller Verification","description":"Whether the platform verifies a caller who may match a patient record by full name and date of\nbirth. Off, the agent never asks a caller to verify, and every platform tool that reads a patient\nrecord refuses. The service's integration tools run either way, unless one of them verifies its\ncallers (`caller_verification_endpoint_id`)."},"caller_verification_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Caller Verification Endpoint Id","description":"The integration endpoint that verifies this service's callers, on a service with\n`platform_caller_verification` and `allow_unverified_integration_results` false: one of this\nworkspace's that declares `declarations.verifies` and never waits for approval under its\nintegration's `approval_policy`. `null` clears it, and leaving it out keeps what's stored. Takes effect\non the next call or turn."},"allow_unverified_integration_results":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Unverified Integration Results","description":"A dangerous bypass, off by default. On, results from the service's integration endpoints, reads and\nwrites, never count as a patient record for the output checker's unverified-caller check\n(`output_checks.phi_unverified`, which runs only on a service that sets it to `cut`), so the agent may read\nthem back to any caller, verified or not. Writes are still held to everything else, the platform's own\npatient reads still refuse until the caller verifies, and data queries and skills still count. Never on\nbeside `caller_verification_endpoint_id`. Every change is audited."},"voice_config":{"anyOf":[{"$ref":"#/components/schemas/ServiceVoiceConfig-Input"},{"type":"null"}],"description":"Replaces the voice block. `null` clears it, and leaving it out keeps what's stored."},"accepted_context":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContextKeySpec"},"type":"array","maxItems":100},{"type":"null"}],"title":"Accepted Context"},"crisis_call_911_reply":{"anyOf":[{"$ref":"#/components/schemas/CrisisCall911Reply"},{"type":"null"}],"description":"Reply for an already-in-crisis caller asking us to call 911. Omit to keep; null clears it."},"contact_lines":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactLineInput"},"type":"array","maxItems":50},{"type":"null"}],"title":"Contact Lines","description":"Replace declared contact lines. Omit to keep them; an empty list clears them."},"medical_emergency_ending":{"anyOf":[{"type":"string","enum":["stay_on_line","end_after_script"]},{"type":"null"}],"title":"Medical Emergency Ending","description":"How a voice call ends after a medical emergency's script: ``stay_on_line`` (the default) or\n``end_after_script``, which plays the authored closing line and then ends the call. A self-harm or\ncrisis statement keeps the call open in either."},"output_checks":{"anyOf":[{"$ref":"#/components/schemas/ServiceOutputChecksRequest"},{"type":"null"}],"title":"Output Checks","description":"Which reply checks run. The block replaces what is stored: a key it names overrides the workspace default and a\nkey it leaves out inherits it. `null` clears the block, so every key inherits. Leaving it out keeps what's stored.\nTakes effect for a call set up after the update."},"emergency_floor":{"anyOf":[{"$ref":"#/components/schemas/ServiceEmergencyFloorRequest"},{"type":"null"}],"title":"Emergency Floor","description":"How the floor acts on the service's text conversations, voice notes and simulations. The block replaces what is\nstored, as `output_checks` does: `null` clears it and leaving it out keeps it. Takes effect for the next message."},"conversation_audit":{"anyOf":[{"$ref":"#/components/schemas/ConversationAuditSettings"},{"type":"null"}],"description":"Replace the audit settings. Omit to keep them; send `enabled: false` to turn the audit off."},"declared_languages":{"anyOf":[{"items":{"type":"string","enum":["en","es","ar","fr","de","pt","zh","ja","ko"]},"type":"array","maxItems":9,"minItems":1},{"type":"null"}],"title":"Declared Languages","description":"Replace the languages this service serves. `null` clears them, and leaving it out keeps them."}},"type":"object","title":"UpdateServiceRequest"},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"DescriptionString":{"type":"string","maxLength":2000},"VersionSet-Input":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"LLMConfig":{"properties":{"llm_name":{"type":"string","title":"Llm Name"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"experience_controls":{"anyOf":[{"$ref":"#/components/schemas/LLMExperienceControls"},{"type":"null"}]}},"type":"object","required":["llm_name"],"title":"LLMConfig"},"LLMExperienceControls":{"properties":{"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Top P"}},"additionalProperties":false,"type":"object","title":"LLMExperienceControls","description":"Typed model-tuning controls for a version set's LLM preference.\n\n``params`` stays available as a provider-specific escape hatch. These three fields are the ones deployments\nuse. Token budgets are left out on purpose, so a version set cannot cut a response short by accident."},"VersionSetBehaviorPin":{"properties":{"set_id":{"type":"string","format":"uuid","title":"Set Id","description":"The library set. It belongs to the service's workspace and isn't archived."},"version":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Version","description":"The version of the set the service runs. A later version of the set changes nothing until the pin moves."},"enabled":{"type":"boolean","title":"Enabled","description":"A disabled pin stays on the version set and is never offered.","default":true},"states":{"items":{"$ref":"#/components/schemas/NameString"},"type":"array","maxItems":200,"title":"States","description":"The action and data collection states it applies in. Empty: every one."}},"additionalProperties":false,"type":"object","required":["set_id","version"],"title":"VersionSetBehaviorPin","description":"One library set a version set uses, at one version."},"ServiceTag":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["key"],"title":"ServiceTag"},"ServiceVoiceConfig-Input":{"properties":{"silence_policy":{"$ref":"#/components/schemas/SilencePolicy"},"max_buffer_delay_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Buffer Delay Ms"},"eager_eot_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eager Eot Threshold"},"eot_timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eot Timeout Ms"},"filler_style":{"type":"string","enum":["backchannel","phrase","silent"],"title":"Filler Style","default":"backchannel"},"filler_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filler Vocabulary"},"backchannel_delay_ms":{"type":"integer","title":"Backchannel Delay Ms","default":400},"max_response_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Sentences"},"max_response_words":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Words"},"barge_in_min_speech_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Min Speech S"},"barge_in_cooldown_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Cooldown S"},"held_turn_policy":{"type":"string","enum":["always","judged","never"],"title":"Held Turn Policy","description":"What a realtime voice call does with a caller turn committed while the agent's own opening, the notice and the greeting, is still playing. always: the turn is answered once the opening ends. judged: the turn is answered only when it asks for something the opening did not cover, so a greeting, an acknowledgement or an echo of the opening is left unanswered, and a turn that cannot be judged is answered. never: the turn is not answered, and the caller's next turn is answered as usual. Every turn is still recorded and checked for a medical emergency, whatever the setting. It applies to a call the agent opens itself; a call that waits for the caller to speak first answers the first turn.","default":"always"},"min_tts_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Tts Speed"},"post_eot_pause_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Eot Pause Ms"},"transition_deadline_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transition Deadline Ms"},"progress_interval_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Interval Ms"},"empathy_hold_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Empathy Hold Ms"},"filler_cooldown_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filler Cooldown Ms"},"progress_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Progress Vocabulary"},"tts_provider":{"anyOf":[{"type":"string","enum":["cartesia","elevenlabs"]},{"type":"null"}],"title":"Tts Provider"},"tts_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tts Config"},"language_providers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LanguageProviderEntry"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Language Providers"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider"},"realtime_voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"type":"null"}],"title":"Realtime Voice","description":"Deprecated built-in OpenAI Realtime voice shortcut. Use realtime.voice instead; the two fields are mutually exclusive.","deprecated":true},"realtime":{"anyOf":[{"$ref":"#/components/schemas/RealtimeSessionConfig"},{"type":"null"}]},"eleven_realtime":{"anyOf":[{"$ref":"#/components/schemas/ElevenRealtimeSessionConfig"},{"type":"null"}]},"grok_voice":{"anyOf":[{"$ref":"#/components/schemas/GrokVoiceSessionConfig"},{"type":"null"}]},"gpt_live":{"anyOf":[{"$ref":"#/components/schemas/GptLiveSessionConfig"},{"type":"null"}]},"phonic":{"anyOf":[{"$ref":"#/components/schemas/PhonicSessionConfig"},{"type":"null"}]},"readiness_requires":{"anyOf":[{"items":{"type":"string","enum":["openai_realtime","decisions","warehouse"]},"type":"array","maxItems":10},{"type":"null"}],"title":"Readiness Requires"},"max_concurrent_calls":{"type":"integer","maximum":100,"minimum":1,"title":"Max Concurrent Calls","default":60},"max_calls_per_caller":{"type":"integer","maximum":100,"minimum":1,"title":"Max Calls Per Caller","default":2},"answer_hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"forwarding":{"anyOf":[{"$ref":"#/components/schemas/ServiceForwardingConfig-Input"},{"type":"null"}]}},"type":"object","title":"ServiceVoiceConfig","description":"Per-service voice pipeline tuning. Overrides workspace/env defaults.\n\nEach field is optional — None means inherit from the layer above\n(workspace VoiceSettings → env vars → hardcoded defaults).\n\nA field is read only by the families whose ``reads`` list it (``platform_lib.config.voice_families.specs``); a save\naccepts the others and reports them as ignored."},"SilencePolicy":{"properties":{"max_closing_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Closing Attempts","default":2},"max_cap_warning_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Cap Warning Attempts","default":2},"cap_warning_retry_seconds":{"type":"number","maximum":60,"minimum":1,"title":"Cap Warning Retry Seconds","default":10}},"additionalProperties":false,"type":"object","title":"SilencePolicy","description":"Per-service delivery retries around the signed silence cadence."},"LanguageProviderEntry":{"properties":{"provider":{"type":"string","enum":["cartesia","elevenlabs"],"title":"Provider"},"config":{"additionalProperties":true,"type":"object","maxProperties":20,"title":"Config"}},"type":"object","required":["provider"],"title":"LanguageProviderEntry","description":"Per-language TTS provider configuration."},"RealtimeSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","enum":["gpt-realtime-2.1","gpt-realtime-2.1-mini"]},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"$ref":"#/components/schemas/RealtimeCustomVoice"},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.25},{"type":"null"}],"title":"Speed"},"noise_reduction":{"anyOf":[{"type":"string","enum":["near_field","far_field","off"]},{"type":"null"}],"title":"Noise Reduction","description":"Input noise reduction. Omit or set null to use the Platform default; set 'off' to disable it."},"noise_reduction_strength":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Noise Reduction Strength","description":"OpenAI audio.input.noise_reduction.strength. Higher values suppress more noise.","docs_url":"https://developers.openai.com/api/reference/resources/realtime/client-events"},"transcription":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTranscriptionConfig"},{"type":"null"}]},"turn_detection":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/RealtimeServerVadConfig"},{"$ref":"#/components/schemas/RealtimeSemanticVadConfig"}],"discriminator":{"propertyName":"type","mapping":{"semantic_vad":"#/components/schemas/RealtimeSemanticVadConfig","server_vad":"#/components/schemas/RealtimeServerVadConfig"}}},{"type":"null"}],"title":"Turn Detection"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"max_output_tokens":{"anyOf":[{"type":"integer","maximum":4096,"minimum":1},{"type":"string","const":"inf"},{"type":"null"}],"title":"Max Output Tokens"},"truncation":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTruncationConfig"},{"type":"null"}]},"required_tool_on_first_caller_turn":{"anyOf":[{"type":"string","maxLength":256,"minLength":1,"pattern":"^[A-Za-z_][A-Za-z0-9_.:-]*$"},{"type":"null"}],"title":"Required Tool On First Caller Turn","description":"Force one named function on the first caller-generated response, excluding the inbound greeting, then restore automatic tool choice. Runtime accepts this only for source_override='test' sessions and tools that the executor verifies are read-only or side-effect-free."}},"additionalProperties":false,"type":"object","title":"RealtimeSessionConfig","description":"Typed OpenAI Realtime session controls for a service."},"RealtimeCustomVoice":{"properties":{"id":{"type":"string","maxLength":256,"minLength":1,"pattern":"^voice_[A-Za-z0-9_-]+$","title":"Id"}},"additionalProperties":false,"type":"object","required":["id"],"title":"RealtimeCustomVoice","description":"Approved OpenAI custom voice reference."},"RealtimeTranscriptionConfig":{"properties":{"model":{"type":"string","const":"gpt-transcribe","title":"Model","default":"gpt-transcribe"},"language":{"anyOf":[{"type":"string","enum":["af","ar","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","es","et","fa","fi","fr","gl","gu","he","hi","hr","hu","hy","id","is","it","iw","ja","ka","kk","kn","ko","lt","lv","mi","mk","ml","mr","ms","nb","ne","nl","no","pl","pt","ro","ru","sk","sl","sr","sv","sw","ta","te","th","tl","tr","uk","ur","vi","zh","afr","amh","ara","aze","bel","ben","bos","bul","cat","ces","cmn","cym","dan","deu","ell","eng","est","fas","fil","fin","fra","gle","glg","guj","heb","hin","hrv","hun","hye","ind","isl","ita","jpn","kan","kat","kaz","kor","lav","lit","mal","mar","mkd","mon","mri","msa","mya","nep","nld","nor","pol","por","ron","rus","slk","slv","som","spa","srp","swa","swe","tam","tel","tgl","tha","tur","ukr","urd","vie","yue","zh-cn","zh-hk","zh-tw"]},{"type":"null"}],"title":"Language"},"prompt":{"anyOf":[{"type":"string","maxLength":1024,"minLength":1},{"type":"null"}],"title":"Prompt"},"keywords":{"anyOf":[{"items":{"type":"string","maxLength":256,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keywords","description":"Literal transcription hints. Unset, use the service keyterms.","docs_url":"https://developers.openai.com/api/docs/guides/transcription"}},"additionalProperties":false,"type":"object","title":"RealtimeTranscriptionConfig","description":"Asynchronous caller-audio transcription used for transcripts and observability."},"RealtimeServerVadConfig":{"properties":{"type":{"type":"string","const":"server_vad","title":"Type","default":"server_vad"},"threshold":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Threshold"},"prefix_padding_ms":{"anyOf":[{"type":"integer","maximum":5000,"minimum":0},{"type":"null"}],"title":"Prefix Padding Ms"},"silence_duration_ms":{"anyOf":[{"type":"integer","maximum":3000,"minimum":200},{"type":"null"}],"title":"Silence Duration Ms"}},"additionalProperties":false,"type":"object","title":"RealtimeServerVadConfig","description":"Volume-based turn detection controls."},"RealtimeSemanticVadConfig":{"properties":{"type":{"type":"string","const":"semantic_vad","title":"Type","default":"semantic_vad"},"eagerness":{"type":"string","enum":["auto","low","medium","high"],"title":"Eagerness","default":"auto"}},"additionalProperties":false,"type":"object","title":"RealtimeSemanticVadConfig","description":"Semantic turn detection controls."},"RealtimeTruncationConfig":{"properties":{"type":{"type":"string","enum":["auto","disabled","retention_ratio"],"title":"Type","description":"Use auto or retention_ratio. Legacy disabled values are readable but refused by voice sessions.","default":"auto","docs_url":"https://developers.openai.com/api/docs/guides/voice-latency-cost?api=realtime#truncation"},"retention_ratio":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Retention Ratio"},"post_instructions_tokens":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Post Instructions Tokens"}},"additionalProperties":false,"type":"object","title":"RealtimeTruncationConfig","description":"Conversation context truncation strategy."},"ElevenRealtimeSessionConfig":{"properties":{"voice":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Voice"},"model":{"anyOf":[{"type":"string","const":"eleven_realtime_v1_mini"},{"type":"null"}],"title":"Model"}},"additionalProperties":false,"type":"object","required":["voice"],"title":"ElevenRealtimeSessionConfig","description":"Eleven Realtime controls for a service: the ElevenLabs voice it speaks in, and the model."},"GrokVoiceSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"grok-voice-3.0"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["altair","ara","atlas","aurora","carina","castor","celeste","cosmo","eve","helios","helix","iris","kepler","leo","liora","lumen","luna","lux","naksh","orion","perseus","rex","rigel","sal","sirius","ursa","zagan","zenith"]},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.7},{"type":"null"}],"title":"Speed"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","high"]},{"type":"null"}],"title":"Reasoning Effort"},"keyterms":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keyterms","description":"Transcription hints. Unset, use the service keyterms. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"},"language_hint":{"anyOf":[{"type":"string","enum":["en","ar-EG","ar-SA","ar-AE","bn","zh","fr","de","hi","id","it","ja","ko","pt-BR","pt-PT","ru","es-MX","es-ES","tr","vi"]},{"type":"null"}],"title":"Language Hint"},"replace":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":100,"minLength":1},"propertyNames":{"maxLength":100,"minLength":1},"type":"object","maxProperties":100,"minProperties":1},{"type":"null"}],"title":"Replace","description":"Pronunciation replacements: a phrase the agent says mapped to how xAI speaks it. Matched case-insensitively on whole words, longest key first. Keys and values are stripped, and keys that differ only by case are refused. xAI changes the audio and not its transcript; the runtime applies the same map to the transcript before the output checks read it, so they judge what the caller hears. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"}},"additionalProperties":false,"type":"object","title":"GrokVoiceSessionConfig","description":"Grok Voice controls for a service. Every field is optional: the provider supplies the defaults."},"GptLiveSessionConfig":{"properties":{"model":{"type":"string","enum":["gpt-live-1","gpt-live-1.1-leopard-2-alpha"],"title":"Model","default":"gpt-live-1"},"voice":{"type":"string","enum":["alloy","ash","ballad","beacon","bossa","brise","cedar","cinder","coral","delta","echo","flitz","gleam","harema","juni","marin","meridian","nira","noeul","nuri","quartz","ripple","sage","shida","shimmer","sillage","stone","tempo","verse","vesper","willow"],"title":"Voice","default":"marin"}},"additionalProperties":false,"type":"object","title":"GptLiveSessionConfig","description":"Live startup settings. Language comes from the agent's instructions, not a protocol field."},"PhonicSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"phonic-1"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["sabrina","grant","sandeep","landon","shelby","mason","virginia","eleanor","gabrielle","paula","nolan","roberto","hikari","tomoya","eloise","jerome","daniela","juliana","valeria","eduardo","henri","kourtney","kaspar","mei","stella","karoline","amelia","william","joon","hana","mia","derek","divya","alice","karin","phillip","jackson","gina","michelle"]},{"type":"null"}],"title":"Voice"},"intelligence_level":{"anyOf":[{"type":"string","enum":["standard","high"]},{"type":"null"}],"title":"Intelligence Level"},"audio_speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.5},{"type":"null"}],"title":"Audio Speed"},"vad":{"anyOf":[{"$ref":"#/components/schemas/PhonicVadConfig"},{"type":"null"}]},"boosted_keywords":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Boosted Keywords","description":"Recognition hints. Unset, use the service keyterms."},"pronunciation_dictionary":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhonicPronunciation"},"type":"array","maxItems":100},{"type":"null"}],"title":"Pronunciation Dictionary"},"multilingual_mode":{"anyOf":[{"type":"string","enum":["auto","request","initial"]},{"type":"null"}],"title":"Multilingual Mode"}},"additionalProperties":false,"type":"object","title":"PhonicSessionConfig","description":"Phonic controls for a service."},"PhonicVadConfig":{"properties":{"threshold":{"anyOf":[{"type":"number","maximum":0.8,"minimum":0.2},{"type":"null"}],"title":"Threshold"},"prebuffer_duration_ms":{"anyOf":[{"type":"integer","maximum":2000,"minimum":0},{"type":"null"}],"title":"Prebuffer Duration Ms"},"min_speech_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Speech Duration Ms"},"min_silence_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Silence Duration Ms"},"min_words_to_interrupt":{"anyOf":[{"type":"integer","maximum":10,"minimum":1},{"type":"null"}],"title":"Min Words To Interrupt"}},"additionalProperties":false,"type":"object","title":"PhonicVadConfig","description":"Phonic's server VAD. Unset fields keep Phonic's defaults."},"PhonicPronunciation":{"properties":{"word":{"type":"string","maxLength":30,"minLength":1,"title":"Word"},"pronunciation":{"type":"string","maxLength":50,"minLength":1,"title":"Pronunciation"}},"additionalProperties":false,"type":"object","required":["word","pronunciation"],"title":"PhonicPronunciation"},"StaffedHours":{"properties":{"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone"},"windows":{"items":{"$ref":"#/components/schemas/StaffedWindow"},"type":"array","maxItems":50,"minItems":1,"title":"Windows"},"closed_on_us_federal_holidays":{"type":"boolean","title":"Closed On Us Federal Holidays","default":false},"closed_dates":{"items":{"type":"string","maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"type":"array","maxItems":100,"title":"Closed Dates"}},"type":"object","required":["timezone","windows"],"title":"StaffedHours","description":"When the people who answer a service's lines are there.\n\nA weekday with no window is closed all day. A closed date, and a federal holiday when the service closes for\nthem, close the whole day whatever the windows say. Everything else is open exactly where a window covers the\nwall-clock time of the zone."},"StaffedWindow":{"properties":{"day":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"title":"Day"},"open":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Open"},"close":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Close"}},"type":"object","required":["day","open","close"],"title":"StaffedWindow","description":"One stretch of one weekday that people answer: from ``open`` up to, not including, ``close``."},"ServiceForwardingConfig-Input":{"properties":{"forward_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"warm_transfer_answer_timeout_s":{"type":"integer","maximum":55,"minimum":10,"title":"Warm Transfer Answer Timeout S","default":30},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue","default":"hand_over"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss","default":"hand_back"},"receiver_classifier":{"type":"string","enum":["twilio_amd","platform"],"title":"Receiver Classifier","default":"twilio_amd"},"approved_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Approved Destinations"},"fallback_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"test_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":20,"title":"Test Destinations"},"verification_callers":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/PhoneE164"},"type":"object","maxProperties":10,"title":"Verification Callers"},"hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"after_hours_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"default_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"transfer_reasons":{"items":{"$ref":"#/components/schemas/TransferReason"},"type":"array","maxItems":20,"title":"Transfer Reasons"},"destination_hours":{"additionalProperties":{"$ref":"#/components/schemas/DestinationHours"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Destination Hours"},"unsupported_language_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"type":"object","required":["forward_to"],"title":"ServiceForwardingConfig","description":"Per-service call-forwarding destination + transfer mechanism.\n\nThis block gates the ``forward_call`` tool: None means the agent cannot\ntransfer at all. When present, ``forward_to`` picks the destination mode,\nand the tool schema follows it — a static service gets an argument-less\ntool, a dynamic one gets a required ``phone_number`` that must be one of\n``approved_destinations`` (none approved means no tool). Nothing cascades:\na service is one mode or the other. ``fallback_to`` is no mode: it is the\nline the safe exit dials, in either, and ``forward_call`` never offers it.\nA call tagged as a test reaches only ``test_destinations``, in either mode, unless\nits caller is one of ``verification_callers``.\n``hours`` is none either: on a dynamic service, a transfer outside its staffed\nhours dials ``after_hours_destination`` whichever approved line was asked for, unless that line keeps\nhours of its own in ``destination_hours``.\nA dynamic service can also name a ``default_destination``, the line a transfer that names none dials. A service\nin either mode can list the ``transfer_reasons`` each of its transfers names and the call records."},"DialE164":{"type":"string","maxLength":16,"minLength":2},"PhoneE164":{"type":"string","maxLength":16,"minLength":2},"TransferReason":{"properties":{"key":{"$ref":"#/components/schemas/TransferReasonKey"},"description":{"$ref":"#/components/schemas/DescriptionString","maxLength":200}},"additionalProperties":false,"type":"object","required":["key","description"],"title":"TransferReason","description":"One reason a service's transfers name (``ServiceForwardingConfig.transfer_reasons``)."},"TransferReasonKey":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9_-]*[a-z0-9]$"},"DestinationHours":{"properties":{"hours":{"$ref":"#/components/schemas/StaffedHours"},"after_hours":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["hours"],"title":"DestinationHours","description":"One approved line's own staffed hours and after-hours line, in place of its service's\n(``ServiceForwardingConfig.destination_hours``)."},"ContextKeySpec":{"properties":{"key":{"$ref":"#/components/schemas/SlugString"},"type":{"type":"string","enum":["string","number"],"title":"Type"},"description":{"$ref":"#/components/schemas/DescriptionString"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["key","type","description","required"],"title":"ContextKeySpec","description":"One key a conversation may supply as start-time context for a service.\n\nThe value is validated against ``type`` at conversation start; a tool can then\nbind the key to one of its parameters (injected, hidden from the model)."},"SlugString":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$"},"CrisisCall911Reply":{"properties":{"en":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1},"es":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1}},"additionalProperties":false,"type":"object","required":["en","es"],"title":"CrisisCall911Reply","description":"Per-service wording added when a caller already in crisis asks for emergency dispatch."},"ContactLineInput":{"properties":{"kind":{"type":"string","enum":["crisis","domestic_violence","child_abuse","poison_help","clinical_24h","front_desk"],"title":"Kind"},"number":{"$ref":"#/components/schemas/DialE164"},"spoken_name":{"$ref":"#/components/schemas/NameString","maxLength":80},"spoken_name_es":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"area":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"available_24h":{"type":"boolean","title":"Available 24H"},"may_read_aloud":{"type":"boolean","title":"May Read Aloud"}},"additionalProperties":false,"type":"object","required":["kind","number","spoken_name","available_24h","may_read_aloud"],"title":"ContactLineInput","description":"Save-time number policy; persisted declarations remain readable after policy changes."},"ServiceOutputChecksRequest":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/PhiUnverifiedCheck","description":"On a voice call, `cut` stops a reply that reads something from a patient's record to a caller who has not\nverified, and the caller hears a correction in its place. `off`, the platform default, does not run the check."},"blocklisted_number":{"$ref":"#/components/schemas/BlocklistedNumberCheck","description":"`cut`, the platform default, stops a reply that speaks a number on the platform phone blocklist, and the caller\nhears the no-confirmed-number correction in its place. `off` lets the reply speak it. A listed number is still\nnever dialed and is still refused as a destination."},"misspelled_word":{"$ref":"#/components/schemas/MisspelledWordCheck","description":"`cut`, the platform default, stops a reply that spells back, letter by letter, a word close to but not the one\nthe caller just said. `off` lets the spelling play."},"dosing_or_med_change":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that gives dosing advice or tells the caller to change a medication. `cut` (the platform default)\nreplaces it with a correction, `count` lets it play and counts it, `off` lets it play."},"diagnosis":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says what is wrong with the caller, or that a symptom needs no care. `cut`, `count` or `off`."},"false_confirmation":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says a booking, message or other action is done when no write on the call backs it. `cut`,\n`count` or `off`."},"dispatch_promise":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says emergency help is called, sent or on the way. `cut`, `count` or `off`."},"action_promise":{"$ref":"#/components/schemas/ActionPromiseCheck","description":"A reply that called no tool and tells the caller the agent is doing something now, on text or a realtime call.\n`retry`, the platform default, gives the agent one more go with a note to act or say what it can't do. `off`\nsends the reply as written."},"unbacked_action_claims":{"$ref":"#/components/schemas/UnbackedActionClaimsCheck","description":"Text only. A reply that says something was done for the client, such as an escalation, a handoff or a message\npassed to a team, when no tool that succeeded in the turn did it. `off`, the platform default, does not read the\nreply. `log` reads it and counts a claim it finds; the reply goes out as written. `enforce` holds the reply back\nand gives the agent one more go with a note to call the tool first or not claim it; a second reply that still\nclaims it goes out cut before the claim, with the false-confirmation correction in its place."}},"additionalProperties":false,"type":"object","title":"ServiceOutputChecksRequest","description":"The reply checks a service or a workspace sets. A key left out inherits: a service's from the workspace default,\nthe workspace's from the platform default. Every key can be set to `off`."},"PhiUnverifiedCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"PhiUnverifiedCheck"},"BlocklistedNumberCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"BlocklistedNumberCheck"},"MisspelledWordCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"MisspelledWordCheck"},"CheckerLabelCheck":{"properties":{"mode":{"type":"string","enum":["cut","count","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"CheckerLabelCheck"},"ActionPromiseCheck":{"properties":{"mode":{"type":"string","enum":["retry","off"],"title":"Mode","default":"retry"}},"additionalProperties":false,"type":"object","title":"ActionPromiseCheck"},"UnbackedActionClaimsCheck":{"properties":{"mode":{"type":"string","enum":["off","log","enforce"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"UnbackedActionClaimsCheck"},"ServiceEmergencyFloorRequest":{"properties":{"text_self_harm":{"$ref":"#/components/schemas/TextSelfHarmFloor","description":"A message that says the person is thinking about harming or killing themselves. `enforce`, the platform default,\nanswers it with the floor's crisis script (the region's crisis line, the service's crisis contacts and the\nemergency number) in place of the agent's reply. `off` leaves it to the agent."},"text_medical":{"$ref":"#/components/schemas/TextMedicalFloor","description":"A message that describes a medical emergency, such as chest pain or trouble breathing. `shadow`, the platform\ndefault, detects and counts it and opens the floor's hold, and the agent's reply goes out. `enforce` answers it\nwith the floor's emergency-number script instead. `off` leaves it to the agent."},"held_text":{"$ref":"#/components/schemas/HeldTextFloor","description":"A message on a conversation an operator holds. `enforce`, the platform default, answers it with the floor's\nscript when it names any emergency. `off` leaves every held message to the operator."}},"additionalProperties":false,"type":"object","title":"ServiceEmergencyFloorRequest","description":"How the medical-emergency and crisis floor acts on text conversations (SMS, email, web chat and the other\nmessaging channels), voice notes and simulations. A key left out inherits: a service's from the workspace default,\nthe workspace's from the platform default, which is today's behavior. Every key can be set to `off`, and then the\nfloor neither replaces nor alters the reply: the agent's own reply and tools run, no hold opens, and the hit is\nonly counted. A voice call's floor is not set here."},"TextSelfHarmFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"TextSelfHarmFloor"},"TextMedicalFloor":{"properties":{"mode":{"type":"string","enum":["enforce","shadow","off"],"title":"Mode","default":"shadow"}},"additionalProperties":false,"type":"object","title":"TextMedicalFloor"},"HeldTextFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"HeldTextFloor"},"ConversationAuditSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"checks":{"items":{"$ref":"#/components/schemas/ConversationAuditCheck"},"type":"array","maxItems":4,"minItems":1,"title":"Checks"},"threshold":{"type":"integer","maximum":100,"minimum":1,"title":"Threshold","default":80}},"additionalProperties":false,"type":"object","title":"ConversationAuditSettings"},"ConversationAuditCheck":{"type":"string","enum":["obvious_errors","missed_escalation","wrong_information","missed_safety_event"]},"ServiceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id","description":"The context graph the service binds. Null on a service that binds none: it runs direct programs only."},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"context_graph_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Graph Name"},"keyterms":{"items":{"type":"string"},"type":"array","title":"Keyterms"},"is_active":{"type":"boolean","title":"Is Active"},"version_sets":{"additionalProperties":{"$ref":"#/components/schemas/VersionSet-Output"},"type":"object","title":"Version Sets"},"tags":{"items":{"$ref":"#/components/schemas/ServiceTag"},"type":"array","title":"Tags"},"tool_capacity":{"type":"integer","title":"Tool Capacity"},"channel_type":{"type":"string","enum":["voice","text"],"title":"Channel Type","default":"voice"},"environment":{"type":"string","enum":["sandbox","production"],"title":"Environment","default":"production"},"demo_mode":{"type":"boolean","title":"Demo Mode","description":"Voice calls on this service open with only the recording notice, without the AI disclosure. For demos only,\nnever for a service that takes real callers.","default":false},"platform_caller_verification":{"type":"boolean","title":"Platform Caller Verification","description":"Whether the platform verifies a caller who may match a patient record by full name and date of\nbirth. Off, the agent never asks a caller to verify, and every platform tool that reads a patient\nrecord refuses. The service's integration tools run either way, unless one of them verifies its\ncallers (`caller_verification_endpoint_id`).","default":true},"caller_verification_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Caller Verification Endpoint Id","description":"The integration endpoint that verifies this service's callers, or null when none does."},"allow_unverified_integration_results":{"type":"boolean","title":"Allow Unverified Integration Results","description":"A dangerous bypass, off by default. On, results from the service's integration endpoints, reads and\nwrites, never count as a patient record for the output checker's unverified-caller check\n(`output_checks.phi_unverified`, which runs only on a service that sets it to `cut`), so the agent may read\nthem back to any caller, verified or not. Writes are still held to everything else, the platform's own\npatient reads still refuse until the caller verifies, and data queries and skills still count. Never on\nbeside `caller_verification_endpoint_id`. Every change is audited.","default":false},"voice_config":{"anyOf":[{"$ref":"#/components/schemas/ServiceVoiceConfig-Output"},{"type":"null"}]},"accepted_context":{"items":{"$ref":"#/components/schemas/ContextKeySpec"},"type":"array","title":"Accepted Context"},"crisis_call_911_reply":{"anyOf":[{"$ref":"#/components/schemas/CrisisCall911Reply"},{"type":"null"}]},"contact_lines":{"items":{"$ref":"#/components/schemas/ContactLine"},"type":"array","maxItems":50,"title":"Contact Lines","description":"Declared direct contact lines. Public emergency and N11 short codes are refused."},"medical_emergency_ending":{"type":"string","enum":["stay_on_line","end_after_script"],"title":"Medical Emergency Ending","description":"How a voice call ends after a medical emergency's script: ``stay_on_line`` (the default) or\n``end_after_script``, which plays the authored closing line and then ends the call. A self-harm or\ncrisis statement keeps the call open in either.","default":"stay_on_line"},"output_checks":{"$ref":"#/components/schemas/ServiceOutputChecks","description":"The checks the service's calls run: its own block over the workspace defaults. Where each value comes from:\n`GET /v1/{workspace_id}/services/{service_id}/safety`."},"emergency_floor":{"$ref":"#/components/schemas/ServiceEmergencyFloor","description":"How the floor acts on the service's text conversations: its own block over the workspace defaults. Where each\nvalue comes from: `GET /v1/{workspace_id}/services/{service_id}/safety`."},"conversation_audit":{"$ref":"#/components/schemas/ConversationAuditSettings","description":"The post-call transcript quality audit, off unless the service turns it on."},"declared_languages":{"anyOf":[{"items":{"type":"string","enum":["en","es","ar","fr","de","pt","zh","ja","ko"]},"type":"array","maxItems":9,"minItems":1},{"type":"null"}],"title":"Declared Languages","description":"The languages this service serves, as ISO 639-1 codes. None: none declared."},"effective_harnesses":{"anyOf":[{"items":{"$ref":"#/components/schemas/EffectiveHarness"},"type":"array"},{"type":"null"}],"title":"Effective Harnesses","description":"The release each voice and text harness that has a platform default runs on the service's calls: its pin, else\nthe harness default. Set by the single-service GET, left out of lists. `GET .../services/{service_id}/harnesses`\nlists only the harnesses the service runs."},"is_system":{"type":"boolean","title":"Is System","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","description","agent_id","context_graph_id","keyterms","is_active","version_sets","tags","tool_capacity","created_at","updated_at"],"title":"ServiceResponse"},"VersionSet-Output":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"ServiceVoiceConfig-Output":{"properties":{"silence_policy":{"$ref":"#/components/schemas/SilencePolicy"},"max_buffer_delay_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Buffer Delay Ms"},"eager_eot_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eager Eot Threshold"},"eot_timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eot Timeout Ms"},"filler_style":{"type":"string","enum":["backchannel","phrase","silent"],"title":"Filler Style","default":"backchannel"},"filler_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filler Vocabulary"},"backchannel_delay_ms":{"type":"integer","title":"Backchannel Delay Ms","default":400},"max_response_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Sentences"},"max_response_words":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Words"},"barge_in_min_speech_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Min Speech S"},"barge_in_cooldown_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Cooldown S"},"held_turn_policy":{"type":"string","enum":["always","judged","never"],"title":"Held Turn Policy","description":"What a realtime voice call does with a caller turn committed while the agent's own opening, the notice and the greeting, is still playing. always: the turn is answered once the opening ends. judged: the turn is answered only when it asks for something the opening did not cover, so a greeting, an acknowledgement or an echo of the opening is left unanswered, and a turn that cannot be judged is answered. never: the turn is not answered, and the caller's next turn is answered as usual. Every turn is still recorded and checked for a medical emergency, whatever the setting. It applies to a call the agent opens itself; a call that waits for the caller to speak first answers the first turn.","default":"always"},"min_tts_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Tts Speed"},"post_eot_pause_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Eot Pause Ms"},"transition_deadline_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transition Deadline Ms"},"progress_interval_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Interval Ms"},"empathy_hold_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Empathy Hold Ms"},"filler_cooldown_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filler Cooldown Ms"},"progress_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Progress Vocabulary"},"tts_provider":{"anyOf":[{"type":"string","enum":["cartesia","elevenlabs"]},{"type":"null"}],"title":"Tts Provider"},"tts_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tts Config"},"language_providers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LanguageProviderEntry"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Language Providers"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider"},"realtime_voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"type":"null"}],"title":"Realtime Voice","description":"Deprecated built-in OpenAI Realtime voice shortcut. Use realtime.voice instead; the two fields are mutually exclusive.","deprecated":true},"realtime":{"anyOf":[{"$ref":"#/components/schemas/RealtimeSessionConfig"},{"type":"null"}]},"eleven_realtime":{"anyOf":[{"$ref":"#/components/schemas/ElevenRealtimeSessionConfig"},{"type":"null"}]},"grok_voice":{"anyOf":[{"$ref":"#/components/schemas/GrokVoiceSessionConfig"},{"type":"null"}]},"gpt_live":{"anyOf":[{"$ref":"#/components/schemas/GptLiveSessionConfig"},{"type":"null"}]},"phonic":{"anyOf":[{"$ref":"#/components/schemas/PhonicSessionConfig"},{"type":"null"}]},"readiness_requires":{"anyOf":[{"items":{"type":"string","enum":["openai_realtime","decisions","warehouse"]},"type":"array","maxItems":10},{"type":"null"}],"title":"Readiness Requires"},"max_concurrent_calls":{"type":"integer","maximum":100,"minimum":1,"title":"Max Concurrent Calls","default":60},"max_calls_per_caller":{"type":"integer","maximum":100,"minimum":1,"title":"Max Calls Per Caller","default":2},"answer_hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"forwarding":{"anyOf":[{"$ref":"#/components/schemas/ServiceForwardingResponse"},{"type":"null"}]}},"type":"object","title":"ServiceVoiceConfig","description":"Per-service voice pipeline tuning. Overrides workspace/env defaults.\n\nEach field is optional — None means inherit from the layer above\n(workspace VoiceSettings → env vars → hardcoded defaults).\n\nA field is read only by the families whose ``reads`` list it (``platform_lib.config.voice_families.specs``); a save\naccepts the others and reports them as ignored."},"ServiceForwardingResponse":{"properties":{"forward_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"warm_transfer_answer_timeout_s":{"type":"integer","maximum":55,"minimum":10,"title":"Warm Transfer Answer Timeout S","default":30},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue","default":"hand_over"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss","default":"hand_back"},"receiver_classifier":{"type":"string","enum":["twilio_amd","platform"],"title":"Receiver Classifier","default":"twilio_amd"},"approved_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Approved Destinations"},"fallback_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"test_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":20,"title":"Test Destinations"},"verification_callers":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/PhoneE164"},"type":"object","maxProperties":10,"title":"Verification Callers"},"hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"after_hours_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"default_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"transfer_reasons":{"items":{"$ref":"#/components/schemas/TransferReason"},"type":"array","maxItems":20,"title":"Transfer Reasons"},"destination_hours":{"additionalProperties":{"$ref":"#/components/schemas/DestinationHours"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Destination Hours"},"unsupported_language_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"type":"object","required":["forward_to","warm_transfer","warm_transfer_answer_timeout_s","warm_transfer_on_queue","warm_transfer_on_miss","receiver_classifier","approved_destinations","fallback_to","test_destinations","verification_callers","hours","after_hours_destination","default_destination","transfer_reasons","destination_hours","unsupported_language_destination"],"title":"ServiceForwardingResponse","description":"Forwarding responses always include defaults; the input keeps its existing schema name."},"ContactLine":{"properties":{"kind":{"type":"string","enum":["crisis","domestic_violence","child_abuse","poison_help","clinical_24h","front_desk"],"title":"Kind"},"number":{"type":"string","maxLength":16,"minLength":2,"title":"Number"},"spoken_name":{"$ref":"#/components/schemas/NameString","maxLength":80},"spoken_name_es":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"area":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"available_24h":{"type":"boolean","title":"Available 24H"},"may_read_aloud":{"type":"boolean","title":"May Read Aloud"}},"additionalProperties":false,"type":"object","required":["kind","number","spoken_name","available_24h","may_read_aloud"],"title":"ContactLine","description":"A service's declared contact line."},"ServiceOutputChecks":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/PhiUnverifiedCheck"},"blocklisted_number":{"$ref":"#/components/schemas/BlocklistedNumberCheck"},"misspelled_word":{"$ref":"#/components/schemas/MisspelledWordCheck"},"dosing_or_med_change":{"$ref":"#/components/schemas/CheckerLabelCheck"},"diagnosis":{"$ref":"#/components/schemas/CheckerLabelCheck"},"false_confirmation":{"$ref":"#/components/schemas/CheckerLabelCheck"},"dispatch_promise":{"$ref":"#/components/schemas/CheckerLabelCheck"},"action_promise":{"$ref":"#/components/schemas/ActionPromiseCheck"},"unbacked_action_claims":{"$ref":"#/components/schemas/UnbackedActionClaimsCheck"}},"additionalProperties":false,"type":"object","title":"ServiceOutputChecks"},"ServiceEmergencyFloor":{"properties":{"text_self_harm":{"$ref":"#/components/schemas/TextSelfHarmFloor"},"text_medical":{"$ref":"#/components/schemas/TextMedicalFloor"},"held_text":{"$ref":"#/components/schemas/HeldTextFloor"}},"additionalProperties":false,"type":"object","title":"ServiceEmergencyFloor"},"EffectiveHarness":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","title":"Harness"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"The release tag, or ``in-tree``. None when ``error`` is set."},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"source":{"type":"string","enum":["pin","harness_default","invalid_pin"],"title":"Source","description":"``invalid_pin``: the service stores a pin of this harness that no longer validates. The entry names no\nrelease, so the harness has nothing to run until the pin is set again. A ``pin`` or ``harness_default`` with an\n``error`` names a release the platform may no longer run, and names no release either."},"contract_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Version","description":"The contract the release was built on, from the registry. None for ``in-tree`` and when ``error`` is set."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why the harness has nothing to run on the service: its stored pin is invalid, or its pin or default names a\nrelease or a policy the platform may no longer run (revoked, unregistered, or off the supported contract range),\nor its pin names a harness the service does not run.\nSet, the entry names no release and no policy, so the harness has nothing to run. None otherwise."},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"The policy release the harness runs the values of: the pin's, else the default's. None when neither names one,\nand when ``error`` is set."}},"type":"object","required":["kind","harness","repo","tag","asset","sha256","source","contract_version","error","policy"],"title":"EffectiveHarness","description":"The release one harness runs on a service, and where that came from. ``repo``, ``asset`` and ``sha256`` are\nNone for ``in-tree``. agent-engine loads the wheel it baked at ``/opt/harnesses/<sha256>/``."},"HarnessKind":{"type":"string","enum":["voice","text"]},"PolicyRef":{"properties":{"repo":{"type":"string","maxLength":128,"minLength":1,"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag"},"asset":{"type":"string","maxLength":256,"minLength":1,"title":"Asset"},"sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256"}},"type":"object","required":["repo","tag","asset","sha256"],"title":"PolicyRef","description":"A policy release registered in ``policy_releases.json``, named exactly: one family's values for the settings\nCore declares. The image bakes it at ``/opt/harness-policies/<sha256>.json``."}}},"paths":{"/v1/{workspace_id}/services/{service_id}":{"put":{"tags":["Services"],"summary":"Update a service","description":"Update a service's configuration. A field left out keeps what is stored. An explicit `null` clears `voice_config`, `output_checks`, `emergency_floor`, `caller_verification_endpoint_id` and `declared_languages`, and is refused (422) on `version_sets`, which replaces the whole map and always needs `release`. A `caller_verification_endpoint_id` has to be an endpoint of one of the workspace's integrations that declares `declarations.verifies` and never waits for approval, on a service with `platform_caller_verification` and `allow_unverified_integration_results` false. Every change to `allow_unverified_integration_results` is audited. A version set sent without `dynamic_behavior_sets` keeps the pins the stored version set of that name has, and `[]` clears them. channel-manager decides which numbers a call can be transferred to; the service names which of them the agent uses. A save that adds a number a call can dial to `voice_config.forwarding` (`forward_to`, `fallback_to`, an approved destination or a test line) holds every such number of the block to the voice use cases bound to the service: each has to be on the use case's `allowed_forwarding_numbers` in channel-manager, read fresh, and none may be one of its own numbers. A service bound to both its inbound and its outbound voice use case is held to both lists, since a transfer is gated by the list of its call's own direction. The 422 names the use case, its `channel` and the destinations' labels, never a number, with a `message` saying to add the numbers to the use case in channel-manager first, and the write is refused with 503 when channel-manager cannot be read. A service's harness pins are checked again as `PUT .../harness-pins` checks them, so a `channel_type`, family, agent or version set change that leaves a pin that no longer fits, or a stored pin that no longer validates, is refused with 422, with the same `code` and `fields` in its plan. An update that changes the harness pins or what their fit depends on lands only on the service as this request read it: a change by another writer in between is a 409 and nothing is stored. Every other update is last-write-wins, except that it stores the harness pins as the service holds them when it writes, so it never reverts a pin set after this request read the service. Requires `Service.update` permission.","operationId":"update-service","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateServiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Not found."},"409":{"description":"An update of the harness fit found the service changed since this request read it, so nothing was stored. Or the name is taken, or a pinned dynamic behavior set is archived."},"422":{"description":"Invalid request body, or a transfer destination a voice use case bound to the service will not dial (`destination_not_allowed_by_use_case`) or that is one of its own numbers (`destination_is_own_number`), with the `use_case_id`, its `channel` and the destinations' `destinations` labels. `destination_not_allowed_by_use_case` also carries a `message` saying to add the numbers to the use case's `allowed_forwarding_numbers` in channel-manager first, with a docs link."},"503":{"description":"channel-manager could not be read to check the service's transfer destinations."}}}}}}
```

## Delete a service

> Delete a service. Requires \`Service.delete\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}":{"delete":{"tags":["Services"],"summary":"Delete a service","description":"Delete a service. Requires `Service.delete` permission.","operationId":"delete-service","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Upsert a service version set

> Replace or create a named version set on a service. The name and pinned agent and context graph versions are validated. \`dynamic\_behavior\_sets\` pins library behavior sets at a version, in the order the selector chooses between them: each has to exist in the workspace and not be archived, every \`states\` entry has to be an action or data collection state of the graph version the version set runs, and the enabled pins' conditions and examples have to fit 160,000 characters together. A pin on an add- or replace-mode version needs only \`Service.update\`. Left out, \`dynamic\_behavior\_sets\` keeps the pins the stored version set has, and \`\[]\` clears them. \`expected\_updated\_at\` refuses the write with 409 when the service has changed since the caller read it. Without it, the write still lands only on the row the request itself read, so a change by another writer in between is a 409 too. Requires \`Service.update\` permission; only Amigo administrators change a system service's version sets (403 otherwise, as for a service update).

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"UpsertVersionSetRequest":{"properties":{"version_set":{"$ref":"#/components/schemas/VersionSet-Input","description":"The version set to store. Its `dynamic_behavior_sets` left out keep the pins the stored version set has, and\n`[]` clears them."},"expected_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Updated At","description":"The service's `updated_at` this write was made from, exactly as the service returned it. When the service\nhas changed since, the write is refused with 409 and nothing is stored, so a stale page can't overwrite\nanother editor's pins. Left out, the write is not compared to what the caller last read."}},"type":"object","required":["version_set"],"title":"UpsertVersionSetRequest"},"VersionSet-Input":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"LLMConfig":{"properties":{"llm_name":{"type":"string","title":"Llm Name"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"experience_controls":{"anyOf":[{"$ref":"#/components/schemas/LLMExperienceControls"},{"type":"null"}]}},"type":"object","required":["llm_name"],"title":"LLMConfig"},"LLMExperienceControls":{"properties":{"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Top P"}},"additionalProperties":false,"type":"object","title":"LLMExperienceControls","description":"Typed model-tuning controls for a version set's LLM preference.\n\n``params`` stays available as a provider-specific escape hatch. These three fields are the ones deployments\nuse. Token budgets are left out on purpose, so a version set cannot cut a response short by accident."},"VersionSetBehaviorPin":{"properties":{"set_id":{"type":"string","format":"uuid","title":"Set Id","description":"The library set. It belongs to the service's workspace and isn't archived."},"version":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Version","description":"The version of the set the service runs. A later version of the set changes nothing until the pin moves."},"enabled":{"type":"boolean","title":"Enabled","description":"A disabled pin stays on the version set and is never offered.","default":true},"states":{"items":{"$ref":"#/components/schemas/NameString"},"type":"array","maxItems":200,"title":"States","description":"The action and data collection states it applies in. Empty: every one."}},"additionalProperties":false,"type":"object","required":["set_id","version"],"title":"VersionSetBehaviorPin","description":"One library set a version set uses, at one version."},"NameString":{"maxLength":256,"minLength":1,"type":"string"}}},"paths":{"/v1/{workspace_id}/services/{service_id}/version-sets/{name}":{"put":{"tags":["Services"],"summary":"Upsert a service version set","description":"Replace or create a named version set on a service. The name and pinned agent and context graph versions are validated. `dynamic_behavior_sets` pins library behavior sets at a version, in the order the selector chooses between them: each has to exist in the workspace and not be archived, every `states` entry has to be an action or data collection state of the graph version the version set runs, and the enabled pins' conditions and examples have to fit 160,000 characters together. A pin on an add- or replace-mode version needs only `Service.update`. Left out, `dynamic_behavior_sets` keeps the pins the stored version set has, and `[]` clears them. `expected_updated_at` refuses the write with 409 when the service has changed since the caller read it. Without it, the write still lands only on the row the request itself read, so a change by another writer in between is a 409 too. Requires `Service.update` permission; only Amigo administrators change a system service's version sets (403 otherwise, as for a service update).","operationId":"upsert-service-version-set","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","maxLength":40,"description":"Version set name (e.g. 'release')","title":"Name"},"description":"Version set name (e.g. 'release')"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertVersionSetRequest"}}}},"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Not found."},"409":{"description":"The service changed since `expected_updated_at` or since this request read it, or a pinned dynamic behavior set is archived."},"422":{"description":"Invalid request body."}}}}}}
```

## Get a service's harnesses

> The service's harness pins, and the release each harness it runs runs on its calls: the service's pin, else the harness default. The service runs a harness of its \`channel\_type\` for each family its version sets run, as a pin write resolves them. A harness that has a platform default, which the service stores a pin of and does not run, has a row too, naming no release, whose \`error\` says so. Requires \`Service.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"ServiceHarnessesResponse":{"properties":{"pins":{"items":{"$ref":"#/components/schemas/HarnessPin"},"type":"array","title":"Pins","description":"The service's own pins that validate. A stored pin that no longer does shows as its harness's\n`invalid_pin` entry in `effective_harnesses`."},"effective_harnesses":{"items":{"$ref":"#/components/schemas/EffectiveHarness"},"type":"array","title":"Effective Harnesses","description":"The release each harness the service runs has on its calls: its pin, else the harness default. The service\nruns a harness of its `channel_type` for each family its version sets run, as a pin write resolves them. A harness\nthat has a platform default, which the service stores a pin of and does not run, has a row too, naming no\nrelease, whose `error` says so."}},"type":"object","required":["pins","effective_harnesses"],"title":"ServiceHarnessesResponse"},"HarnessPin":{"properties":{"repo":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag","description":"A release tag of the harness, e.g. ``grok_voice-v1.2.0`` or ``grok_voice-v1.2.0-hotfix.1``, or ``in-tree``."},"asset":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Asset","description":"The wheel's file name on the release."},"sha256":{"anyOf":[{"$ref":"#/components/schemas/Sha256"},{"type":"null"}]},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"A policy release registered in `policy_releases.json`, named exactly by `repo`, `tag`, `asset` and `sha256`:\nthe values the harness runs. Independent of the release, so `in-tree` can name one. Left out, a pin runs the\ndefault's policy, and a default names none. Stored and audited without the key when left out."},"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","maxLength":64,"minLength":1,"title":"Harness","description":"A voice family (``grok_voice``, ``gpt_live``, ...) or a text provider family (``openai``, ``anthropic``, ...)."}},"type":"object","required":["tag","kind","harness"],"title":"HarnessPin"},"Sha256":{"type":"string"},"PolicyRef":{"properties":{"repo":{"type":"string","maxLength":128,"minLength":1,"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag"},"asset":{"type":"string","maxLength":256,"minLength":1,"title":"Asset"},"sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256"}},"type":"object","required":["repo","tag","asset","sha256"],"title":"PolicyRef","description":"A policy release registered in ``policy_releases.json``, named exactly: one family's values for the settings\nCore declares. The image bakes it at ``/opt/harness-policies/<sha256>.json``."},"HarnessKind":{"type":"string","enum":["voice","text"]},"EffectiveHarness":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","title":"Harness"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"The release tag, or ``in-tree``. None when ``error`` is set."},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"source":{"type":"string","enum":["pin","harness_default","invalid_pin"],"title":"Source","description":"``invalid_pin``: the service stores a pin of this harness that no longer validates. The entry names no\nrelease, so the harness has nothing to run until the pin is set again. A ``pin`` or ``harness_default`` with an\n``error`` names a release the platform may no longer run, and names no release either."},"contract_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Version","description":"The contract the release was built on, from the registry. None for ``in-tree`` and when ``error`` is set."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why the harness has nothing to run on the service: its stored pin is invalid, or its pin or default names a\nrelease or a policy the platform may no longer run (revoked, unregistered, or off the supported contract range),\nor its pin names a harness the service does not run.\nSet, the entry names no release and no policy, so the harness has nothing to run. None otherwise."},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"The policy release the harness runs the values of: the pin's, else the default's. None when neither names one,\nand when ``error`` is set."}},"type":"object","required":["kind","harness","repo","tag","asset","sha256","source","contract_version","error","policy"],"title":"EffectiveHarness","description":"The release one harness runs on a service, and where that came from. ``repo``, ``asset`` and ``sha256`` are\nNone for ``in-tree``. agent-engine loads the wheel it baked at ``/opt/harnesses/<sha256>/``."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}/harnesses":{"get":{"tags":["Services"],"summary":"Get a service's harnesses","description":"The service's harness pins, and the release each harness it runs runs on its calls: the service's pin, else the harness default. The service runs a harness of its `channel_type` for each family its version sets run, as a pin write resolves them. A harness that has a platform default, which the service stores a pin of and does not run, has a row too, naming no release, whose `error` says so. Requires `Service.view` permission.","operationId":"get-service-harnesses","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceHarnessesResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Service not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Set a service's harness pins

> Replace the service's harness pins. A pin is \`{kind, harness, repo, tag, asset, sha256}\`, naming a release registered in platform-v2's \`harness\_releases.json\` exactly, or \`{kind, harness, tag: "in-tree"}\`. A release has to match its registry entry on repo, tag, asset and sha256, and the entry has to be on a contract agent-engine supports, have passed conformance and not be revoked. The running agent-engine image has to carry the release: one it does not carry yet is refused with \`detail.code\` \`harness\_release\_not\_deployed\` until agent-engine's CD deploys it. A pin can also name a policy release, \`policy: {repo, tag, asset, sha256}\`, the values the harness runs, registered in platform-v2's \`policy\_releases.json\` for the pin's kind and harness and carried by the running agent-engine image (\`harness\_policy\_unregistered\`, \`harness\_policy\_not\_deployed\`); an \`in-tree\` pin can name one, and a pin without one runs the harness default's policy. A pin's kind is the service's \`channel\_type\`, and its harness is a family the service's version sets run: for voice the service's \`voice\_config.session\_provider\`, else its agent version's, else \`concurrence\`, and for text the provider family of each version set's engage model. A harness left out follows its default, so setting a pin back is the rollback. A PUT of the pins the service already stores writes nothing. \`expected\_updated\_at\` refuses the write with 409 when the service's row has changed since the caller read it, before the pins are checked and even when they already match, so a stale review stores and drops nothing. Only Amigo administrators set a system service's pins. Every change is audited as \`service.harness\_pins.update\`. A pin change that would leave stored settings no harness declares is refused with 422 listing them, unless \`drop\_orphaned\` is true, which deletes them, audited as \`service.settings.drop\_orphaned\`. The response lists what a read of the harnesses lists. Requires \`Service.update\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SetHarnessPinsRequest":{"properties":{"pins":{"items":{"$ref":"#/components/schemas/HarnessPin"},"type":"array","maxItems":20,"title":"Pins","description":"The service's pins, replacing the ones it has. At most one per harness. A harness left out follows its\ndefault, and `[]` clears every pin."},"drop_orphaned":{"type":"boolean","title":"Drop Orphaned","description":"Delete the service's stored settings that no harness that has a platform default declares on these pins. Left\nfalse, a save that would orphan any is refused with 422 and lists them.","default":false},"expected_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Updated At","description":"The service's `updated_at` these pins were reviewed against, exactly as the service returned it. When the\nservice has changed since, the write is refused with 409 and nothing is stored or dropped, even when the pins\nalready match. Left out, the write is not compared to what the caller last read."}},"type":"object","required":["pins"],"title":"SetHarnessPinsRequest"},"HarnessPin":{"properties":{"repo":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag","description":"A release tag of the harness, e.g. ``grok_voice-v1.2.0`` or ``grok_voice-v1.2.0-hotfix.1``, or ``in-tree``."},"asset":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Asset","description":"The wheel's file name on the release."},"sha256":{"anyOf":[{"$ref":"#/components/schemas/Sha256"},{"type":"null"}]},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"A policy release registered in `policy_releases.json`, named exactly by `repo`, `tag`, `asset` and `sha256`:\nthe values the harness runs. Independent of the release, so `in-tree` can name one. Left out, a pin runs the\ndefault's policy, and a default names none. Stored and audited without the key when left out."},"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","maxLength":64,"minLength":1,"title":"Harness","description":"A voice family (``grok_voice``, ``gpt_live``, ...) or a text provider family (``openai``, ``anthropic``, ...)."}},"type":"object","required":["tag","kind","harness"],"title":"HarnessPin"},"Sha256":{"type":"string"},"PolicyRef":{"properties":{"repo":{"type":"string","maxLength":128,"minLength":1,"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag"},"asset":{"type":"string","maxLength":256,"minLength":1,"title":"Asset"},"sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256"}},"type":"object","required":["repo","tag","asset","sha256"],"title":"PolicyRef","description":"A policy release registered in ``policy_releases.json``, named exactly: one family's values for the settings\nCore declares. The image bakes it at ``/opt/harness-policies/<sha256>.json``."},"HarnessKind":{"type":"string","enum":["voice","text"]},"ServiceHarnessesResponse":{"properties":{"pins":{"items":{"$ref":"#/components/schemas/HarnessPin"},"type":"array","title":"Pins","description":"The service's own pins that validate. A stored pin that no longer does shows as its harness's\n`invalid_pin` entry in `effective_harnesses`."},"effective_harnesses":{"items":{"$ref":"#/components/schemas/EffectiveHarness"},"type":"array","title":"Effective Harnesses","description":"The release each harness the service runs has on its calls: its pin, else the harness default. The service\nruns a harness of its `channel_type` for each family its version sets run, as a pin write resolves them. A harness\nthat has a platform default, which the service stores a pin of and does not run, has a row too, naming no\nrelease, whose `error` says so."}},"type":"object","required":["pins","effective_harnesses"],"title":"ServiceHarnessesResponse"},"EffectiveHarness":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","title":"Harness"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"The release tag, or ``in-tree``. None when ``error`` is set."},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"source":{"type":"string","enum":["pin","harness_default","invalid_pin"],"title":"Source","description":"``invalid_pin``: the service stores a pin of this harness that no longer validates. The entry names no\nrelease, so the harness has nothing to run until the pin is set again. A ``pin`` or ``harness_default`` with an\n``error`` names a release the platform may no longer run, and names no release either."},"contract_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Version","description":"The contract the release was built on, from the registry. None for ``in-tree`` and when ``error`` is set."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why the harness has nothing to run on the service: its stored pin is invalid, or its pin or default names a\nrelease or a policy the platform may no longer run (revoked, unregistered, or off the supported contract range),\nor its pin names a harness the service does not run.\nSet, the entry names no release and no policy, so the harness has nothing to run. None otherwise."},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"The policy release the harness runs the values of: the pin's, else the default's. None when neither names one,\nand when ``error`` is set."}},"type":"object","required":["kind","harness","repo","tag","asset","sha256","source","contract_version","error","policy"],"title":"EffectiveHarness","description":"The release one harness runs on a service, and where that came from. ``repo``, ``asset`` and ``sha256`` are\nNone for ``in-tree``. agent-engine loads the wheel it baked at ``/opt/harnesses/<sha256>/``."}}},"paths":{"/v1/{workspace_id}/services/{service_id}/harness-pins":{"put":{"tags":["Services"],"summary":"Set a service's harness pins","description":"Replace the service's harness pins. A pin is `{kind, harness, repo, tag, asset, sha256}`, naming a release registered in platform-v2's `harness_releases.json` exactly, or `{kind, harness, tag: \"in-tree\"}`. A release has to match its registry entry on repo, tag, asset and sha256, and the entry has to be on a contract agent-engine supports, have passed conformance and not be revoked. The running agent-engine image has to carry the release: one it does not carry yet is refused with `detail.code` `harness_release_not_deployed` until agent-engine's CD deploys it. A pin can also name a policy release, `policy: {repo, tag, asset, sha256}`, the values the harness runs, registered in platform-v2's `policy_releases.json` for the pin's kind and harness and carried by the running agent-engine image (`harness_policy_unregistered`, `harness_policy_not_deployed`); an `in-tree` pin can name one, and a pin without one runs the harness default's policy. A pin's kind is the service's `channel_type`, and its harness is a family the service's version sets run: for voice the service's `voice_config.session_provider`, else its agent version's, else `concurrence`, and for text the provider family of each version set's engage model. A harness left out follows its default, so setting a pin back is the rollback. A PUT of the pins the service already stores writes nothing. `expected_updated_at` refuses the write with 409 when the service's row has changed since the caller read it, before the pins are checked and even when they already match, so a stale review stores and drops nothing. Only Amigo administrators set a system service's pins. Every change is audited as `service.harness_pins.update`. A pin change that would leave stored settings no harness declares is refused with 422 listing them, unless `drop_orphaned` is true, which deletes them, audited as `service.settings.drop_orphaned`. The response lists what a read of the harnesses lists. Requires `Service.update` permission.","operationId":"set-service-harness-pins","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetHarnessPinsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceHarnessesResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions, or a system service and a caller who is not an Amigo administrator."},"404":{"description":"Service not found."},"409":{"description":"The service changed since `expected_updated_at` or while the pins were checked, or its version sets pin an archived dynamic behavior set."},"422":{"description":"An unknown harness, a pin that does not fit the service, a release not registered as named, a release not in the running agent-engine image (`detail.code` `harness_release_not_deployed`), or stored settings the pins would orphan. `detail` has the refusal's `code`, `message` and `fields`."},"503":{"description":"agent-engine could not confirm which releases its image baked (`detail.code` `harness_bake_unconfirmed`). Nothing was stored. Try again."}}}}}}
```

## Get the settings a service's harnesses declare

> Every setting each harness the service runs declares: its type, bounds, choices, default and description, with the harness, the release it runs and the schema's version. The service runs a harness of its \`channel\_type\` for each family its version sets run, as a pin write resolves them. A setting exists only when the harness declares it. Requires \`Service.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"ServiceSettingsSchemaResponse":{"properties":{"harnesses":{"items":{"$ref":"#/components/schemas/HarnessSettingsSchema"},"type":"array","title":"Harnesses","description":"One entry per harness the service runs, in (kind, harness) order: its pin, else the harness default. The\nservice runs a harness of its `channel_type` for each family its version sets run, as a pin write resolves\nthem."}},"type":"object","required":["harnesses"],"title":"ServiceSettingsSchemaResponse"},"HarnessSettingsSchema":{"properties":{"kind":{"type":"string","title":"Kind"},"harness":{"type":"string","title":"Harness"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"The release the service runs, or `in-tree`. None when the harness has nothing to run (its effective entry has\nan `error`); it then lists the in-tree schema."},"harness_version":{"type":"string","title":"Harness Version","description":"The schema's version: the release's, or `0.0.0` for `in-tree`."},"settings":{"items":{"$ref":"#/components/schemas/SettingSpec"},"type":"array","title":"Settings"}},"type":"object","required":["kind","harness","tag","harness_version","settings"],"title":"HarnessSettingsSchema","description":"What one harness the service runs declares."},"SettingSpec":{"properties":{"key":{"type":"string","maxLength":100,"minLength":1,"title":"Key"},"area":{"$ref":"#/components/schemas/SettingArea"},"type":{"$ref":"#/components/schemas/SettingType"},"default":{"$ref":"#/components/schemas/SettingValue"},"minimum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimum"},"maximum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maximum"},"choices":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Choices"},"max_length":{"anyOf":[{"type":"integer","maximum":10000,"minimum":1},{"type":"null"}],"title":"Max Length"},"unit":{"anyOf":[{"$ref":"#/components/schemas/SettingUnit"},{"type":"null"}]},"scopes":{"items":{"$ref":"#/components/schemas/SettingScope"},"type":"array","maxItems":2,"minItems":1,"title":"Scopes"},"description":{"type":"string","maxLength":500,"minLength":1,"title":"Description"}},"additionalProperties":false,"type":"object","required":["key","area","type","default","scopes","description"],"title":"SettingSpec","description":"One setting a harness declares: its type, bounds, choices, default and where a tenant may set it."},"SettingArea":{"type":"string","enum":["timing","turn_taking","tools","call_control","speech","context","flows","greeting","retries","channel","guardrails","safety"]},"SettingType":{"type":"string","enum":["bool","int","float","duration_ms","enum","string","string_list"]},"SettingValue":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"SettingUnit":{"type":"string","enum":["ms","s","tokens","count","percent"]},"SettingScope":{"type":"string","enum":["workspace","service"]},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}/settings/schema":{"get":{"tags":["Services"],"summary":"Get the settings a service's harnesses declare","description":"Every setting each harness the service runs declares: its type, bounds, choices, default and description, with the harness, the release it runs and the schema's version. The service runs a harness of its `channel_type` for each family its version sets run, as a pin write resolves them. A setting exists only when the harness declares it. Requires `Service.view` permission.","operationId":"get-service-settings-schema","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceSettingsSchemaResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Service not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Get a service's harness settings

> The service's own setting values, every one stored, and each declared setting of each harness it runs with its value and source: \`service\`, else \`harness\_default\`. A value only a harness the service does not run declares shows under \`settings\` and in no harness. Requires \`Service.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"ServiceSettingsResponse":{"properties":{"settings":{"additionalProperties":{"$ref":"#/components/schemas/SettingValue"},"type":"object","title":"Settings","description":"The service's own values, every one stored, including a value only a harness the service does not run\ndeclares."},"harnesses":{"items":{"$ref":"#/components/schemas/HarnessSettings"},"type":"array","title":"Harnesses","description":"Each harness the service runs, its declared settings resolved: the service's value (`source: service`), else\nthe harness default (`source: harness_default`)."}},"type":"object","required":["settings","harnesses"],"title":"ServiceSettingsResponse"},"SettingValue":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"HarnessSettings":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","maxLength":64,"minLength":1,"title":"Harness"},"settings":{"additionalProperties":{"$ref":"#/components/schemas/ServedHarnessSetting"},"type":"object","maxProperties":200,"title":"Settings"}},"type":"object","required":["kind","harness"],"title":"HarnessSettings","description":"The settings one harness declares, resolved for a service by platform-api: the service's value, else the\nharness default. Only keys the harness declares are served."},"HarnessKind":{"type":"string","enum":["voice","text"]},"ServedHarnessSetting":{"properties":{"value":{"$ref":"#/components/schemas/HarnessSettingValue"},"source":{"$ref":"#/components/schemas/HarnessSettingSource"}},"type":"object","required":["value","source"],"title":"ServedHarnessSetting","description":"One declared setting's value for a service, and the layer it came from."},"HarnessSettingValue":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"HarnessSettingSource":{"type":"string","enum":["harness_default","service","policy"]},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}/settings":{"get":{"tags":["Services"],"summary":"Get a service's harness settings","description":"The service's own setting values, every one stored, and each declared setting of each harness it runs with its value and source: `service`, else `harness_default`. A value only a harness the service does not run declares shows under `settings` and in no harness. Requires `Service.view` permission.","operationId":"get-service-settings","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceSettingsResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Service not found."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Set a service's harness settings

> Replace the service's setting values. A key applies to every harness of the service that declares it, and its value has to satisfy each declaring spec's type, bounds and choices. A key left out runs the harness default. A PUT of the values the service already stores writes nothing. \`expected\_updated\_at\` refuses the write with 409 when the service's row has changed since the caller read it, before the values are checked and even when they already match. Only Amigo administrators set a system service's settings. Every change is audited as \`service.settings.update\`. A key only a harness the service does not run declares is accepted and stored, and shows under \`settings\` only. Requires \`Service.update\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SetServiceSettingsRequest":{"properties":{"settings":{"additionalProperties":{"$ref":"#/components/schemas/SettingValue"},"propertyNames":{"maxLength":100,"minLength":1},"type":"object","maxProperties":200,"title":"Settings","description":"The service's values, replacing the ones it has. A key left out runs the harness default, and `{}` clears\nevery value."},"expected_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Updated At","description":"The service's `updated_at` these values were reviewed against, exactly as the service returned it. When the\nservice has changed since, the write is refused with 409 and nothing is stored, even when the values already\nmatch. Left out, the write is not compared to what the caller last read."}},"type":"object","required":["settings"],"title":"SetServiceSettingsRequest"},"SettingValue":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"ServiceSettingsResponse":{"properties":{"settings":{"additionalProperties":{"$ref":"#/components/schemas/SettingValue"},"type":"object","title":"Settings","description":"The service's own values, every one stored, including a value only a harness the service does not run\ndeclares."},"harnesses":{"items":{"$ref":"#/components/schemas/HarnessSettings"},"type":"array","title":"Harnesses","description":"Each harness the service runs, its declared settings resolved: the service's value (`source: service`), else\nthe harness default (`source: harness_default`)."}},"type":"object","required":["settings","harnesses"],"title":"ServiceSettingsResponse"},"HarnessSettings":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","maxLength":64,"minLength":1,"title":"Harness"},"settings":{"additionalProperties":{"$ref":"#/components/schemas/ServedHarnessSetting"},"type":"object","maxProperties":200,"title":"Settings"}},"type":"object","required":["kind","harness"],"title":"HarnessSettings","description":"The settings one harness declares, resolved for a service by platform-api: the service's value, else the\nharness default. Only keys the harness declares are served."},"HarnessKind":{"type":"string","enum":["voice","text"]},"ServedHarnessSetting":{"properties":{"value":{"$ref":"#/components/schemas/HarnessSettingValue"},"source":{"$ref":"#/components/schemas/HarnessSettingSource"}},"type":"object","required":["value","source"],"title":"ServedHarnessSetting","description":"One declared setting's value for a service, and the layer it came from."},"HarnessSettingValue":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"HarnessSettingSource":{"type":"string","enum":["harness_default","service","policy"]}}},"paths":{"/v1/{workspace_id}/services/{service_id}/settings":{"put":{"tags":["Services"],"summary":"Set a service's harness settings","description":"Replace the service's setting values. A key applies to every harness of the service that declares it, and its value has to satisfy each declaring spec's type, bounds and choices. A key left out runs the harness default. A PUT of the values the service already stores writes nothing. `expected_updated_at` refuses the write with 409 when the service's row has changed since the caller read it, before the values are checked and even when they already match. Only Amigo administrators set a system service's settings. Every change is audited as `service.settings.update`. A key only a harness the service does not run declares is accepted and stored, and shows under `settings` only. Requires `Service.update` permission.","operationId":"set-service-settings","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetServiceSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceSettingsResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions, or a system service and a caller who is not an Amigo administrator."},"404":{"description":"Service not found."},"409":{"description":"The service changed since `expected_updated_at`, or while the settings were checked."},"422":{"description":"A key no harness of the service declares, or a value outside its spec. `detail` names the harness, its version and the key."}}}}}}
```

## Get the identity of a service's effective configuration

> The \`service\_config\_digest\` of the configuration a session of \`version\_set\` loads, the digest a run records, and the service's \`updated\_at\`. The configuration itself is not returned. The digest covers the service, the agent version, context graph version and dynamic behaviors the version set pins, and each harness's release and resolved settings. \`updated\_at\` is the revision of the service's row the config was read from: pass it as \`expected\_updated\_at\` on a settings, harness pins or version set write. It guards that row only. An agent, a context graph, a workspace default or a harness default can change the digest without changing it, so a run is bound by comparing the digest. Requires \`Service.view\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"ServiceConfigurationIdentityResponse":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"service_id":{"type":"string","format":"uuid","title":"Service Id"},"version_set":{"type":"string","title":"Version Set"},"service_config_digest":{"type":"string","title":"Service Config Digest","description":"`sha256:` over the canonical JSON of the whole config a session of `version_set` loads: the service, the\nagent version, context graph version and dynamic behaviors the set pins, and each harness's release and resolved\nsettings. It is the `service_config_digest` a run records."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The service's `updated_at`: the `expected_updated_at` of a conditional settings, harness pins or version set\nwrite. It is the revision of the service's row only. An agent, a context graph, a harness default or a workspace\ndefault can change the digest without changing it."}},"type":"object","required":["workspace_id","service_id","version_set","service_config_digest","updated_at"],"title":"ServiceConfigurationIdentityResponse","description":"Which configuration a session of one version set of the service loads, without the configuration."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}/configuration-identity":{"get":{"tags":["Services"],"summary":"Get the identity of a service's effective configuration","description":"The `service_config_digest` of the configuration a session of `version_set` loads, the digest a run records, and the service's `updated_at`. The configuration itself is not returned. The digest covers the service, the agent version, context graph version and dynamic behaviors the version set pins, and each harness's release and resolved settings. `updated_at` is the revision of the service's row the config was read from: pass it as `expected_updated_at` on a settings, harness pins or version set write. It guards that row only. An agent, a context graph, a workspace default or a harness default can change the digest without changing it, so a run is bound by comparing the digest. Requires `Service.view` permission.","operationId":"get-service-configuration-identity","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}},{"name":"version_set","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"title":"Version Set"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceConfigurationIdentityResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Service not found or inactive, no such version set on it, or a version the set pins is gone."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Promote a reviewed configuration of a service

> Store a candidate version set as \`target\_version\_set\`, with the service's harness pins and settings when the request names them, in one write of the service. The write lands only while the service is at \`expected\_updated\_at\` and every version set in \`reviewed\_base\` still has the \`service\_config\_digest\` the caller reviewed (\`GET .../configuration-identity\`): a change to the service, a workspace default, an agent, a context graph, a dynamic behavior set or a harness default since the review refuses it with 409, and nothing is stored. \`reviewed\_base\` names the target when the service has it, and every version set of the service when the request names \`harness\_pins\` or \`settings\`, which change what a session of each of them loads. A target the service does not have is created and is not named in \`reviewed\_base\`. The candidate names its agent version, and its context graph version when the service binds a context graph, and gets every check a version set, harness pin or settings write of the service gets. The answer is the promotion's receipt, stored with the write, whose \`service\_config\_digest\` is the digest a session of \`target\_version\_set\` loaded from the configuration the promotion committed. It records that configuration, not what a session ran since. The same request with the same \`request\_id\` from the same credential is answered that receipt again with 200 and writes nothing, whatever the service stores by then, while the workspace is active and that credential may still promote the service. After a timeout or a lost response, that retry is how a caller learns whether the promotion was stored. Only Amigo administrators promote a system service. Requires \`Service.update\` permission.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"PromoteServiceConfigurationRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id","description":"The caller's own id for this promotion. A retry sends the same id with the same request."},"expected_updated_at":{"type":"string","format":"date-time","title":"Expected Updated At","description":"The service's `updated_at` the review was made at, exactly as the service returned it."},"reviewed_base":{"items":{"$ref":"#/components/schemas/ReviewedVersionSet"},"type":"array","maxItems":20,"minItems":1,"title":"Reviewed Base","description":"Every version set the review covered. Each has to be a set the service has, and each digest has to be the one\na session of the set would load when the promotion commits."},"target_version_set":{"type":"string","maxLength":40,"minLength":1,"title":"Target Version Set","description":"The version set the candidate is stored as, `release` for the set sessions run by default."},"version_set":{"$ref":"#/components/schemas/VersionSet-Input","description":"The candidate. It names its agent version, and its context graph version when the service binds a context\ngraph: a set that follows the latest version of either is refused. A service that binds no context graph has no\ngraph version to name."},"harness_pins":{"anyOf":[{"items":{"$ref":"#/components/schemas/HarnessPin"},"type":"array","maxItems":20},{"type":"null"}],"title":"Harness Pins","description":"The service's harness pins, replacing the ones it has. Left out, the pins stay as they are."},"settings":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/SettingValue"},"propertyNames":{"maxLength":100,"minLength":1},"type":"object","maxProperties":200},{"type":"null"}],"title":"Settings","description":"The service's harness settings, replacing the ones it has. Left out, the settings stay as they are."}},"type":"object","required":["request_id","expected_updated_at","reviewed_base","target_version_set","version_set"],"title":"PromoteServiceConfigurationRequest"},"ReviewedVersionSet":{"properties":{"version_set":{"type":"string","maxLength":40,"minLength":1,"title":"Version Set"},"service_config_digest":{"type":"string","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","title":"Service Config Digest","description":"The `service_config_digest` `GET .../configuration-identity` answered for the set, which a run of it records."}},"type":"object","required":["version_set","service_config_digest"],"title":"ReviewedVersionSet","description":"One version set the caller reviewed, by the digest of the configuration a session of it loaded."},"VersionSet-Input":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"LLMConfig":{"properties":{"llm_name":{"type":"string","title":"Llm Name"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"experience_controls":{"anyOf":[{"$ref":"#/components/schemas/LLMExperienceControls"},{"type":"null"}]}},"type":"object","required":["llm_name"],"title":"LLMConfig"},"LLMExperienceControls":{"properties":{"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Top P"}},"additionalProperties":false,"type":"object","title":"LLMExperienceControls","description":"Typed model-tuning controls for a version set's LLM preference.\n\n``params`` stays available as a provider-specific escape hatch. These three fields are the ones deployments\nuse. Token budgets are left out on purpose, so a version set cannot cut a response short by accident."},"VersionSetBehaviorPin":{"properties":{"set_id":{"type":"string","format":"uuid","title":"Set Id","description":"The library set. It belongs to the service's workspace and isn't archived."},"version":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Version","description":"The version of the set the service runs. A later version of the set changes nothing until the pin moves."},"enabled":{"type":"boolean","title":"Enabled","description":"A disabled pin stays on the version set and is never offered.","default":true},"states":{"items":{"$ref":"#/components/schemas/NameString"},"type":"array","maxItems":200,"title":"States","description":"The action and data collection states it applies in. Empty: every one."}},"additionalProperties":false,"type":"object","required":["set_id","version"],"title":"VersionSetBehaviorPin","description":"One library set a version set uses, at one version."},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"HarnessPin":{"properties":{"repo":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag","description":"A release tag of the harness, e.g. ``grok_voice-v1.2.0`` or ``grok_voice-v1.2.0-hotfix.1``, or ``in-tree``."},"asset":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Asset","description":"The wheel's file name on the release."},"sha256":{"anyOf":[{"$ref":"#/components/schemas/Sha256"},{"type":"null"}]},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"A policy release registered in `policy_releases.json`, named exactly by `repo`, `tag`, `asset` and `sha256`:\nthe values the harness runs. Independent of the release, so `in-tree` can name one. Left out, a pin runs the\ndefault's policy, and a default names none. Stored and audited without the key when left out."},"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","maxLength":64,"minLength":1,"title":"Harness","description":"A voice family (``grok_voice``, ``gpt_live``, ...) or a text provider family (``openai``, ``anthropic``, ...)."}},"type":"object","required":["tag","kind","harness"],"title":"HarnessPin"},"Sha256":{"type":"string"},"PolicyRef":{"properties":{"repo":{"type":"string","maxLength":128,"minLength":1,"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag"},"asset":{"type":"string","maxLength":256,"minLength":1,"title":"Asset"},"sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256"}},"type":"object","required":["repo","tag","asset","sha256"],"title":"PolicyRef","description":"A policy release registered in ``policy_releases.json``, named exactly: one family's values for the settings\nCore declares. The image bakes it at ``/opt/harness-policies/<sha256>.json``."},"HarnessKind":{"type":"string","enum":["voice","text"]},"SettingValue":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"ServicePromotionReceipt":{"properties":{"promotion_id":{"type":"string","format":"uuid","title":"Promotion Id"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"service_id":{"type":"string","format":"uuid","title":"Service Id"},"target_version_set":{"type":"string","title":"Target Version Set"},"request_fingerprint":{"type":"string","title":"Request Fingerprint","description":"`sha256:` over the canonical request. The same `request_id` with another request is refused."},"reviewed_base":{"items":{"$ref":"#/components/schemas/ReviewedVersionSet"},"type":"array","title":"Reviewed Base","description":"The digests the promotion held to, each recomputed in its transaction."},"base_updated_at":{"type":"string","format":"date-time","title":"Base Updated At","description":"The service's `updated_at` the promotion replaced."},"service_config_digest":{"type":"string","title":"Service Config Digest","description":"The `service_config_digest` a session of `target_version_set` loads from the promoted configuration. A run\nbelongs to this promotion when it records this digest."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The service's `updated_at` after the promotion: the `expected_updated_at` of the next conditional write."},"promoted_at":{"type":"string","format":"date-time","title":"Promoted At"}},"type":"object","required":["promotion_id","request_id","workspace_id","service_id","target_version_set","request_fingerprint","reviewed_base","base_updated_at","service_config_digest","updated_at","promoted_at"],"title":"ServicePromotionReceipt","description":"What one promotion stored, as recorded in the transaction that stored it."}}},"paths":{"/v1/{workspace_id}/services/{service_id}/promotions":{"post":{"tags":["Services"],"summary":"Promote a reviewed configuration of a service","description":"Store a candidate version set as `target_version_set`, with the service's harness pins and settings when the request names them, in one write of the service. The write lands only while the service is at `expected_updated_at` and every version set in `reviewed_base` still has the `service_config_digest` the caller reviewed (`GET .../configuration-identity`): a change to the service, a workspace default, an agent, a context graph, a dynamic behavior set or a harness default since the review refuses it with 409, and nothing is stored. `reviewed_base` names the target when the service has it, and every version set of the service when the request names `harness_pins` or `settings`, which change what a session of each of them loads. A target the service does not have is created and is not named in `reviewed_base`. The candidate names its agent version, and its context graph version when the service binds a context graph, and gets every check a version set, harness pin or settings write of the service gets. The answer is the promotion's receipt, stored with the write, whose `service_config_digest` is the digest a session of `target_version_set` loaded from the configuration the promotion committed. It records that configuration, not what a session ran since. The same request with the same `request_id` from the same credential is answered that receipt again with 200 and writes nothing, whatever the service stores by then, while the workspace is active and that credential may still promote the service. After a timeout or a lost response, that retry is how a caller learns whether the promotion was stored. Only Amigo administrators promote a system service. Requires `Service.update` permission.","operationId":"promote-service-configuration","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteServiceConfigurationRequest"}}}},"responses":{"200":{"description":"A retry of a promotion that already landed: its receipt, and nothing written.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicePromotionReceipt"}}}},"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicePromotionReceipt"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions, or a system service and a caller who is not an Amigo administrator."},"404":{"description":"Service not found."},"409":{"description":"The reviewed base changed (`detail.code` `promotion_base_changed`), or the `request_id` was used with another request (`promotion_request_mismatch`), or the candidate pins an archived dynamic behavior set. Nothing was stored."},"422":{"description":"A candidate that follows the latest agent version, or the latest context graph version on a service that binds a context graph (`promotion_versions_not_explicit`), a `reviewed_base` that does not name every version set the promotion replaces (`promotion_base_incomplete`), or a version set, pin or setting a write of the service refuses, such as a context graph version on a service that binds no context graph (`context_graph_required`)."},"503":{"description":"Another write held the configuration longer than the promotion waits (`promotion_lock_timeout`), the promotion ran past its time bound (`promotion_transaction_timeout`), or agent-engine could not confirm the releases its image carries (`harness_bake_unconfirmed`). Nothing was stored, except that a `promotion_transaction_timeout` whose `detail.outcome` is `unknown` passed its bound while the commit was being acknowledged and may have been stored. Retry with the same `request_id`: a stored promotion is answered its receipt."}}}}}}
```

## Preview rendered service instructions without starting a call

> Return configuration-only instructions for explicit call context.\
> \
> The request supplies tool and transfer availability, language and the crisis resource.\
> It does not include caller history or decide which dynamic behavior is in force.\
> POST carries render inputs only; it creates no run and changes no saved configuration.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"NameString":{"maxLength":256,"minLength":1,"type":"string"},"PromptPreviewContext-Input":{"properties":{"state_name":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"action":{"anyOf":[{"$ref":"#/components/schemas/DescriptionString"},{"type":"null"}]},"language":{"$ref":"#/components/schemas/NameString"},"crisis_resource":{"$ref":"#/components/schemas/DescriptionString"},"has_tools":{"type":"boolean","title":"Has Tools"},"has_write_tools":{"type":"boolean","title":"Has Write Tools"},"transfer_offered":{"type":"boolean","title":"Transfer Offered"},"message_tool":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tool"},"type":"array","maxItems":100,"minItems":1},{"type":"null"}],"title":"Tools"}},"type":"object","required":["language","crisis_resource","has_tools","has_write_tools","transfer_offered"],"title":"PromptPreviewContext"},"DescriptionString":{"type":"string","maxLength":2000},"Tool":{"properties":{"name":{"$ref":"#/components/schemas/NameString"},"description":{"$ref":"#/components/schemas/DescriptionString"}},"type":"object","required":["name","description"],"title":"Tool"},"PromptPreviewResponse":{"properties":{"family":{"type":"string","enum":["cascade","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"],"title":"Family"},"version_set":{"$ref":"#/components/schemas/NameString"},"agent_version":{"type":"integer","title":"Agent Version"},"context_graph_version":{"type":"integer","title":"Context Graph Version"},"state_name":{"$ref":"#/components/schemas/NameString"},"instructions":{"type":"string","title":"Instructions"},"renderer":{"$ref":"#/components/schemas/NameString"},"context":{"$ref":"#/components/schemas/PromptPreviewContext-Output"}},"type":"object","required":["family","version_set","agent_version","context_graph_version","state_name","instructions","renderer","context"],"title":"PromptPreviewResponse"},"PromptPreviewContext-Output":{"properties":{"state_name":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"action":{"anyOf":[{"$ref":"#/components/schemas/DescriptionString"},{"type":"null"}]},"language":{"$ref":"#/components/schemas/NameString"},"crisis_resource":{"$ref":"#/components/schemas/DescriptionString"},"has_tools":{"type":"boolean","title":"Has Tools"},"has_write_tools":{"type":"boolean","title":"Has Write Tools"},"transfer_offered":{"type":"boolean","title":"Transfer Offered"},"message_tool":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tool"},"type":"array","maxItems":100,"minItems":1},{"type":"null"}],"title":"Tools"}},"type":"object","required":["language","crisis_resource","has_tools","has_write_tools","transfer_offered"],"title":"PromptPreviewContext"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}/prompt-preview":{"post":{"tags":["Services"],"summary":"Preview rendered service instructions without starting a call","description":"Return configuration-only instructions for explicit call context.\n\nThe request supplies tool and transfer availability, language and the crisis resource.\nIt does not include caller history or decide which dynamic behavior is in force.\nPOST carries render inputs only; it creates no run and changes no saved configuration.","operationId":"preview-service-prompt","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}},{"name":"family","in":"query","required":true,"schema":{"enum":["cascade","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"],"type":"string","title":"Family"}},{"name":"version_set","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NameString","default":"release"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptPreviewContext-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Read service launch readiness

> Read current configuration and uncached dial eligibility using service read permission.\
> \
> Labels have all digits redacted. No phone numbers, identifiers or authored speech are returned. The one model version is the effective realtime model of a gpt\_realtime release.\
> A listed destination passes the channel-manager dial gate if selected; hours, test-call routing and live call\
> policy still decide which line is selected. This read does not place a call or verify human pickup. An unbound\
> service has empty use-case results. A missing use case is unavailable, and a failed read returns service unavailable.\
> Family capabilities are the catalog's declarations, not evidence from a call. An unset family uses the engine's\
> concurrence default. A missing agent version remains unavailable. An inbound use case reports whether it has a fallback\
> forwarding number; this is informational and the number is not returned.\
> Each version set on a family of the voice family contract lists what a save refuses it for (family\_refusals):\
> the admission, the family's delivery rules and the contract's rules on the program it runs. A version set that\
> could not be judged is not\_judged with a code: a family off the contract, a missing agent version (even where a\
> save would still judge the graph), a voice\_config or a graph version that no longer validates, or no graph to\
> run. not\_judged is never a pass.\
> starts lists, for each version set, the kinds of start its service takes (text, test\_call, app\_session): a client\
> offers those and no other.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"ServiceReadinessResponse":{"properties":{"voice_use_cases":{"items":{"$ref":"#/components/schemas/VoiceUseCase"},"type":"array","title":"Voice Use Cases"},"lines":{"items":{"$ref":"#/components/schemas/Line"},"type":"array","title":"Lines"},"families":{"items":{"$ref":"#/components/schemas/BoundFamily"},"type":"array","title":"Families"},"starts":{"items":{"$ref":"#/components/schemas/VersionSetStarts"},"type":"array","title":"Starts","description":"Each version set, release first, with the starts its service takes: a client offers these and no other. A kind listed is one the platform runs for this service's channel and family; it is not a judgement that the start succeeds (families[].family_judgement and family_refusals say that). Every service has an entry per version set, a text one too."},"policies":{"$ref":"#/components/schemas/Policies"},"launch":{"$ref":"#/components/schemas/Launch"}},"type":"object","required":["voice_use_cases","lines","families","starts","policies","launch"],"title":"ServiceReadinessResponse"},"VoiceUseCase":{"properties":{"label":{"$ref":"#/components/schemas/ReadinessLabel"},"channel":{"anyOf":[{"$ref":"#/components/schemas/ReadinessLabel"},{"type":"null"}]},"available":{"type":"boolean","title":"Available"},"fallback_forwarding_number_set":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fallback Forwarding Number Set","description":"Whether an inbound voice use case has a fallback forwarding number, where inbound calls forward when channel-manager does not answer. Informational: unset does not block a save. Null for an outbound or unavailable use case. The number itself is never returned."}},"type":"object","required":["label","channel","available","fallback_forwarding_number_set"],"title":"VoiceUseCase"},"ReadinessLabel":{"type":"string"},"Line":{"properties":{"kind":{"$ref":"#/components/schemas/LineKind"},"label":{"$ref":"#/components/schemas/ReadinessLabel"},"use_cases":{"items":{"$ref":"#/components/schemas/Dialability"},"type":"array","title":"Use Cases"}},"type":"object","required":["kind","label","use_cases"],"title":"Line"},"LineKind":{"type":"string","enum":["forward_to","approved_destination","fallback_to","after_hours_destination","test_destination"]},"Dialability":{"properties":{"label":{"$ref":"#/components/schemas/ReadinessLabel"},"channel":{"anyOf":[{"$ref":"#/components/schemas/ReadinessLabel"},{"type":"null"}]},"will_dial":{"type":"boolean","title":"Will Dial","description":"Passes the use case's current dial gate when this line is selected."},"reason":{"anyOf":[{"$ref":"#/components/schemas/UseCaseDialability"},{"type":"string","const":"use_case_missing"}],"title":"Reason"}},"type":"object","required":["label","channel","will_dial","reason"],"title":"Dialability"},"UseCaseDialability":{"type":"string","enum":["own_number","listed","not_listed"]},"BoundFamily":{"properties":{"version_set":{"$ref":"#/components/schemas/ReadinessLabel"},"family":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Family"},"source":{"type":"string","enum":["service","agent","engine_default","agent_missing"],"title":"Source"},"capabilities":{"anyOf":[{"$ref":"#/components/schemas/SessionCapabilities"},{"type":"null"}]},"dynamic_behaviors_configured":{"type":"boolean","title":"Dynamic Behaviors Configured"},"ignored_settings":{"items":{"type":"string"},"type":"array","title":"Ignored Settings","description":"The service settings, as dotted paths from the service (keyterms, voice_config.max_buffer_delay_ms), that the service sets to a non-default value and this family does not read. Advisory: the config is valid and saves, and a setting listed here may still be refused (see family_refusals). Empty, and not known, when ignored_settings_known is false."},"ignored_settings_known":{"type":"boolean","title":"Ignored Settings Known","description":"Whether ignored_settings was read: false when the version set's family is unknown or the stored service no longer validates, so an empty list says nothing."},"family_judgement":{"type":"string","enum":["judged","not_judged"],"title":"Family Judgement","description":"judged: family_refusals is every refusal the voice family contract and the family's delivery rules find for this version set, empty when the family runs it as authored. not_judged: the version set could not be judged (family_not_judged says why), so family_refusals may be incomplete and an empty one is never a pass."},"family_refusals":{"items":{"$ref":"#/components/schemas/FamilyRefusal"},"type":"array","title":"Family Refusals","description":"Each reason the family cannot run this version set as stored, with the code, message and fields a save refuses it with: the family's admission for the workspace when the service names the family, its delivery rules held to the whole config, then the contract's rules on the program the set's agent version runs. A client shows each one's code, message and fields and computes none. Messages have every digit redacted; a save plan's problems keep the exact text."},"family_not_judged":{"anyOf":[{"$ref":"#/components/schemas/FamilyNotJudged"},{"type":"null"}],"description":"Why the version set was not judged, when family_judgement is not_judged; null otherwise."}},"type":"object","required":["version_set","family","source","capabilities","dynamic_behaviors_configured","ignored_settings","ignored_settings_known","family_judgement","family_refusals","family_not_judged"],"title":"BoundFamily"},"SessionCapabilities":{"properties":{"multi_state":{"type":"boolean","title":"Multi State"},"dynamic_behaviors":{"type":"boolean","title":"Dynamic Behaviors"},"completion_navigation":{"type":"boolean","title":"Completion Navigation"},"channels":{"items":{"type":"string","enum":["app","phone","playground","test_call"]},"type":"array","title":"Channels"},"outbound_calls":{"type":"boolean","title":"Outbound Calls"},"operator_takeover":{"type":"boolean","title":"Operator Takeover"},"end_call":{"type":"boolean","title":"End Call"},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"authored_lines":{"type":"string","enum":["tts","model_checked","clips"],"title":"Authored Lines","default":"clips"},"floor_enforced":{"type":"boolean","title":"Floor Enforced","default":false},"state_carrier":{"anyOf":[{"type":"string","enum":["session_update_and_note","note_only"]},{"type":"null"}],"title":"State Carrier"},"typed_guardrails":{"type":"boolean","title":"Typed Guardrails","default":false}},"type":"object","required":["multi_state","dynamic_behaviors","completion_navigation","channels","outbound_calls","operator_takeover","end_call","warm_transfer","authored_lines","floor_enforced","state_carrier","typed_guardrails"],"title":"SessionCapabilities"},"FamilyRefusal":{"properties":{"code":{"anyOf":[{"$ref":"#/components/schemas/FamilyRefusalCode"},{"type":"string","enum":["family_warm_transfer_unsupported","family_cannot_speak_service_lines"]}],"title":"Code"},"message":{"$ref":"#/components/schemas/ReadinessLabel","description":"Names the family and the fix, with every digit redacted."},"fields":{"items":{"$ref":"#/components/schemas/ReadinessLabel"},"type":"array","title":"Fields","description":"What the author changes, as dotted paths."}},"type":"object","required":["code","message","fields"],"title":"FamilyRefusal"},"FamilyRefusalCode":{"type":"string","enum":["voice_family_not_served","voice_family_residency","voice_family_agent_version","voice_family_direct_program","voice_family_graph_shape","voice_family_guardrails","voice_family_dynamic_behaviors","voice_family_completion_navigation","voice_family_warm_transfer","voice_family_service_lines","voice_family_outbound","voice_family_settings"]},"FamilyNotJudged":{"properties":{"code":{"$ref":"#/components/schemas/FamilyNotJudgedCode"},"message":{"$ref":"#/components/schemas/ReadinessLabel"},"fields":{"items":{"$ref":"#/components/schemas/ReadinessLabel"},"type":"array","title":"Fields","description":"Where the author looks, as dotted paths."}},"type":"object","required":["code","message","fields"],"title":"FamilyNotJudged"},"FamilyNotJudgedCode":{"type":"string","enum":["agent_version_missing","family_not_on_contract","voice_config_unreadable","graph_missing","graph_version_missing","graph_version_unreadable"]},"VersionSetStarts":{"properties":{"version_set":{"$ref":"#/components/schemas/ReadinessLabel"},"kinds":{"items":{"$ref":"#/components/schemas/StartKind"},"type":"array","title":"Kinds"},"kinds_known":{"type":"boolean","title":"Kinds Known","description":"False when the version set's family is unknown (families[].source is agent_missing): kinds is then empty and says nothing; a client offers no start from it and shows why."}},"type":"object","required":["version_set","kinds","kinds_known"],"title":"VersionSetStarts"},"StartKind":{"type":"string","enum":["text","test_call","app_session"]},"Policies":{"properties":{"forward_call_configured":{"type":"boolean","title":"Forward Call Configured"},"warm_transfer":{"type":"boolean","title":"Warm Transfer"},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss"},"hours_configured":{"type":"boolean","title":"Hours Configured"},"default_destination_configured":{"type":"boolean","title":"Default Destination Configured","description":"A dynamic service names the line a transfer dials when the agent names none."},"transfer_reasons":{"items":{"$ref":"#/components/schemas/ReadinessLabel"},"type":"array","title":"Transfer Reasons","description":"The keys of the reasons every forward_call names and the call records, empty when none."},"destination_hours_configured":{"type":"boolean","title":"Destination Hours Configured"},"verification_callers_configured":{"type":"boolean","title":"Verification Callers Configured"},"unsupported_language_route":{"type":"boolean","title":"Unsupported Language Route"}},"type":"object","required":["forward_call_configured","warm_transfer","warm_transfer_on_queue","warm_transfer_on_miss","hours_configured","default_destination_configured","transfer_reasons","destination_hours_configured","verification_callers_configured","unsupported_language_route"],"title":"Policies"},"Launch":{"properties":{"demo_mode":{"type":"boolean","title":"Demo Mode"},"medical_emergency_ending":{"type":"string","enum":["stay_on_line","end_after_script"],"title":"Medical Emergency Ending"},"output_check_modes":{"$ref":"#/components/schemas/OutputCheckModes"},"test_callers_registered":{"type":"boolean","title":"Test Callers Registered"},"verification_callers_registered":{"type":"boolean","title":"Verification Callers Registered","description":"Every configured verification caller is a registered test caller; false when none are configured."},"human_line_configured":{"type":"boolean","title":"Human Line Configured","description":"A fallback_to or static forward_to is configured for the safe exit; pickup is not verified."},"answer_hours_configured":{"type":"boolean","title":"Answer Hours Configured","description":"The voice config sets answer_hours: outside them the agent takes no call."},"readiness_requires":{"items":{"type":"string","enum":["binding","service_active","residency","fleet","valkey","lakebase","platform_api","outside_answer_hours","openai_realtime","decisions","warehouse"]},"type":"array","title":"Readiness Requires","description":"What the live voice-call readiness check gates this service's phone calls on: the base set every call needs, outside_answer_hours when answer_hours are set, then the voice config's saved readiness_requires."},"effective_voice":{"anyOf":[{"$ref":"#/components/schemas/EffectiveVoice"},{"type":"null"}],"description":"What a gpt_realtime release version set opens its session with once each null model, voice and reasoning_effort resolves to the runtime's default. Null for any other family."}},"type":"object","required":["demo_mode","medical_emergency_ending","output_check_modes","test_callers_registered","verification_callers_registered","human_line_configured","answer_hours_configured","readiness_requires","effective_voice"],"title":"Launch"},"OutputCheckModes":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/ReadinessLabel"}},"type":"object","required":["phi_unverified"],"title":"OutputCheckModes","description":"Mode values follow the library's read model as it adds supported modes."},"EffectiveVoice":{"properties":{"session_provider":{"type":"string","const":"gpt_realtime","title":"Session Provider"},"model":{"type":"string","enum":["gpt-realtime-2.1","gpt-realtime-2.1-mini"],"title":"Model"},"voice":{"type":"string","maxLength":256,"title":"Voice"},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"],"title":"Reasoning Effort"}},"type":"object","required":["session_provider","model","voice","reasoning_effort"],"title":"EffectiveVoice"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}/readiness":{"get":{"tags":["Services"],"summary":"Read service launch readiness","description":"Read current configuration and uncached dial eligibility using service read permission.\n\nLabels have all digits redacted. No phone numbers, identifiers or authored speech are returned. The one model version is the effective realtime model of a gpt_realtime release.\nA listed destination passes the channel-manager dial gate if selected; hours, test-call routing and live call\npolicy still decide which line is selected. This read does not place a call or verify human pickup. An unbound\nservice has empty use-case results. A missing use case is unavailable, and a failed read returns service unavailable.\nFamily capabilities are the catalog's declarations, not evidence from a call. An unset family uses the engine's\nconcurrence default. A missing agent version remains unavailable. An inbound use case reports whether it has a fallback\nforwarding number; this is informational and the number is not returned.\nEach version set on a family of the voice family contract lists what a save refuses it for (family_refusals):\nthe admission, the family's delivery rules and the contract's rules on the program it runs. A version set that\ncould not be judged is not_judged with a code: a family off the contract, a missing agent version (even where a\nsave would still judge the graph), a voice_config or a graph version that no longer validates, or no graph to\nrun. not_judged is never a pass.\nstarts lists, for each version set, the kinds of start its service takes (text, test_call, app_session): a client\noffers those and no other.","operationId":"get-service-readiness","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceReadinessResponse"}}}},"404":{"description":"Service not found"},"409":{"description":"Stored service configuration is incompatible. The detail is {code, message, fields}: code config_incompatible for the stored service, or agent_version_incompatible for the voice_config of an agent version a version set runs, and fields the dotted paths that do not validate. Every digit is redacted."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Readiness source unavailable"}}}}}}
```

## Plan a service create

> Plan \`POST /v1/{workspace\_id}/services\` with the body it takes, under its permission (\`Service.create\`) and scope. A permission the create would need for a field it sets (\`Service.update\`, \`platform:admin\`) is a problem, not a 403. Writes nothing: it runs the save's own checks and lists each refusal the save would answer with in \`problems\` (\`status\`, \`code\`, \`message\`, \`where\` and the save's exact \`detail\`), in the order the save meets them, where the save stops at the first. A check the save only reaches past an earlier refusal is skipped where it would read through what that refusal named: the version pins and the realtime pairing of an agent or a context graph the workspace lacks, the behavior pins of a version set whose versions don't resolve, and every check after the service config when what the save would store does not validate. A refusal only the write itself can raise, such as a pinned set archived since, is not listed. \`changes\` is the field diff against the stored service, \`families\` each version set's family with its capability row and the family's delivery rules held to the whole config, and \`readiness\` the readiness readback of what the save would store. Each family lists what the voice family contract refuses it for in \`family\_refusals\` (\`family\_judgement\` \`judged\`), or is \`not\_judged\` with a code, which is never a pass; its messages have digits redacted, where \`problems\[].message\` keeps the exact text. Read rate limit; audited as \`service.plan.read\`.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"CreateServiceRequest":{"properties":{"name":{"$ref":"#/components/schemas/NameString"},"description":{"$ref":"#/components/schemas/DescriptionString","default":""},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id","description":"The context graph the service's workflow agent versions run: one of this workspace's. Leave it out, or send\nnull, for a service that binds no graph. Every version set of such a service runs an agent version whose program\nis direct and pins no context graph version."},"keyterms":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":500,"title":"Keyterms"},"is_active":{"type":"boolean","title":"Is Active","default":true},"version_sets":{"additionalProperties":{"$ref":"#/components/schemas/VersionSet-Input"},"type":"object","title":"Version Sets","default":{}},"tags":{"items":{"$ref":"#/components/schemas/ServiceTag"},"type":"array","maxItems":50,"title":"Tags"},"tool_capacity":{"type":"integer","maximum":10,"minimum":1,"title":"Tool Capacity","default":3},"channel_type":{"type":"string","enum":["voice","text"],"title":"Channel Type","default":"voice"},"environment":{"type":"string","enum":["sandbox","production"],"title":"Environment","default":"production"},"demo_mode":{"type":"boolean","title":"Demo Mode","description":"Voice calls on this service open with only the recording notice, without the AI disclosure. For demos only,\nnever for a service that takes real callers.","default":false},"platform_caller_verification":{"type":"boolean","title":"Platform Caller Verification","description":"Whether the platform verifies a caller who may match a patient record by full name and date of\nbirth. Off, the agent never asks a caller to verify, and every platform tool that reads a patient\nrecord refuses. The service's integration tools run either way, unless one of them verifies its\ncallers (`caller_verification_endpoint_id`).","default":true},"caller_verification_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Caller Verification Endpoint Id","description":"The integration endpoint that verifies this service's callers, on a service with\n`platform_caller_verification` and `allow_unverified_integration_results` false. The endpoint has to\nbe one of this workspace's, declare `declarations.verifies`, and never wait for approval under its\nintegration's `approval_policy`. A successful call verifies the caller as the one patient its response\nnames there, once per conversation. The reads of that integration that declare the patient they read\nrefuse until then, and then run only for that patient, and the agent may share what they return.\nNaming one needs `Service.update`."},"allow_unverified_integration_results":{"type":"boolean","title":"Allow Unverified Integration Results","description":"A dangerous bypass, off by default. On, results from the service's integration endpoints, reads and\nwrites, never count as a patient record for the output checker's unverified-caller check\n(`output_checks.phi_unverified`, which runs only on a service that sets it to `cut`), so the agent may read\nthem back to any caller, verified or not. Writes are still held to everything else, the platform's own\npatient reads still refuse until the caller verifies, and data queries and skills still count. Never on\nbeside `caller_verification_endpoint_id`. Every change is audited.","default":false},"voice_config":{"anyOf":[{"$ref":"#/components/schemas/ServiceVoiceConfig-Input"},{"type":"null"}]},"accepted_context":{"items":{"$ref":"#/components/schemas/ContextKeySpec"},"type":"array","maxItems":100,"title":"Accepted Context"},"crisis_call_911_reply":{"anyOf":[{"$ref":"#/components/schemas/CrisisCall911Reply"},{"type":"null"}]},"contact_lines":{"items":{"$ref":"#/components/schemas/ContactLineInput"},"type":"array","maxItems":50,"title":"Contact Lines","description":"Declared direct contact lines. Public emergency and N11 short codes are refused."},"medical_emergency_ending":{"type":"string","enum":["stay_on_line","end_after_script"],"title":"Medical Emergency Ending","description":"How a voice call ends after a medical emergency's script: ``stay_on_line`` (the default) or\n``end_after_script``, which plays the authored closing line and then ends the call. A self-harm or\ncrisis statement keeps the call open in either.","default":"stay_on_line"},"output_checks":{"anyOf":[{"$ref":"#/components/schemas/ServiceOutputChecksRequest"},{"type":"null"}],"description":"Which reply checks run. A key left out inherits the workspace default (`GET /v1/{workspace_id}/settings/safety`),\nand the platform default where the workspace sets none. Setting any key needs `Service.update`."},"emergency_floor":{"anyOf":[{"$ref":"#/components/schemas/ServiceEmergencyFloorRequest"},{"type":"null"}],"description":"How the medical-emergency and crisis floor acts on the service's text conversations, voice notes and\nsimulations. A key left out inherits the workspace default, and the platform default where the workspace sets\nnone. Setting any key needs `Service.update`."},"conversation_audit":{"anyOf":[{"$ref":"#/components/schemas/ConversationAuditSettings"},{"type":"null"}],"description":"The post-call transcript quality audit. Left out, it is off. See `ConversationAuditSettings`."},"declared_languages":{"anyOf":[{"items":{"type":"string","enum":["en","es","ar","fr","de","pt","zh","ja","ko"]},"type":"array","maxItems":9,"minItems":1},{"type":"null"}],"title":"Declared Languages","description":"The languages this service serves, as ISO 639-1 codes: a non-empty list of distinct supported\nlanguages. Omit or null for none declared, which serves only the agent's default language."}},"type":"object","required":["name","agent_id"],"title":"CreateServiceRequest"},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"DescriptionString":{"type":"string","maxLength":2000},"VersionSet-Input":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"LLMConfig":{"properties":{"llm_name":{"type":"string","title":"Llm Name"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"experience_controls":{"anyOf":[{"$ref":"#/components/schemas/LLMExperienceControls"},{"type":"null"}]}},"type":"object","required":["llm_name"],"title":"LLMConfig"},"LLMExperienceControls":{"properties":{"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Top P"}},"additionalProperties":false,"type":"object","title":"LLMExperienceControls","description":"Typed model-tuning controls for a version set's LLM preference.\n\n``params`` stays available as a provider-specific escape hatch. These three fields are the ones deployments\nuse. Token budgets are left out on purpose, so a version set cannot cut a response short by accident."},"VersionSetBehaviorPin":{"properties":{"set_id":{"type":"string","format":"uuid","title":"Set Id","description":"The library set. It belongs to the service's workspace and isn't archived."},"version":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Version","description":"The version of the set the service runs. A later version of the set changes nothing until the pin moves."},"enabled":{"type":"boolean","title":"Enabled","description":"A disabled pin stays on the version set and is never offered.","default":true},"states":{"items":{"$ref":"#/components/schemas/NameString"},"type":"array","maxItems":200,"title":"States","description":"The action and data collection states it applies in. Empty: every one."}},"additionalProperties":false,"type":"object","required":["set_id","version"],"title":"VersionSetBehaviorPin","description":"One library set a version set uses, at one version."},"ServiceTag":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["key"],"title":"ServiceTag"},"ServiceVoiceConfig-Input":{"properties":{"silence_policy":{"$ref":"#/components/schemas/SilencePolicy"},"max_buffer_delay_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Buffer Delay Ms"},"eager_eot_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eager Eot Threshold"},"eot_timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eot Timeout Ms"},"filler_style":{"type":"string","enum":["backchannel","phrase","silent"],"title":"Filler Style","default":"backchannel"},"filler_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filler Vocabulary"},"backchannel_delay_ms":{"type":"integer","title":"Backchannel Delay Ms","default":400},"max_response_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Sentences"},"max_response_words":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Words"},"barge_in_min_speech_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Min Speech S"},"barge_in_cooldown_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Cooldown S"},"held_turn_policy":{"type":"string","enum":["always","judged","never"],"title":"Held Turn Policy","description":"What a realtime voice call does with a caller turn committed while the agent's own opening, the notice and the greeting, is still playing. always: the turn is answered once the opening ends. judged: the turn is answered only when it asks for something the opening did not cover, so a greeting, an acknowledgement or an echo of the opening is left unanswered, and a turn that cannot be judged is answered. never: the turn is not answered, and the caller's next turn is answered as usual. Every turn is still recorded and checked for a medical emergency, whatever the setting. It applies to a call the agent opens itself; a call that waits for the caller to speak first answers the first turn.","default":"always"},"min_tts_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Tts Speed"},"post_eot_pause_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Eot Pause Ms"},"transition_deadline_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transition Deadline Ms"},"progress_interval_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Interval Ms"},"empathy_hold_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Empathy Hold Ms"},"filler_cooldown_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filler Cooldown Ms"},"progress_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Progress Vocabulary"},"tts_provider":{"anyOf":[{"type":"string","enum":["cartesia","elevenlabs"]},{"type":"null"}],"title":"Tts Provider"},"tts_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tts Config"},"language_providers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LanguageProviderEntry"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Language Providers"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider"},"realtime_voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"type":"null"}],"title":"Realtime Voice","description":"Deprecated built-in OpenAI Realtime voice shortcut. Use realtime.voice instead; the two fields are mutually exclusive.","deprecated":true},"realtime":{"anyOf":[{"$ref":"#/components/schemas/RealtimeSessionConfig"},{"type":"null"}]},"eleven_realtime":{"anyOf":[{"$ref":"#/components/schemas/ElevenRealtimeSessionConfig"},{"type":"null"}]},"grok_voice":{"anyOf":[{"$ref":"#/components/schemas/GrokVoiceSessionConfig"},{"type":"null"}]},"gpt_live":{"anyOf":[{"$ref":"#/components/schemas/GptLiveSessionConfig"},{"type":"null"}]},"phonic":{"anyOf":[{"$ref":"#/components/schemas/PhonicSessionConfig"},{"type":"null"}]},"readiness_requires":{"anyOf":[{"items":{"type":"string","enum":["openai_realtime","decisions","warehouse"]},"type":"array","maxItems":10},{"type":"null"}],"title":"Readiness Requires"},"max_concurrent_calls":{"type":"integer","maximum":100,"minimum":1,"title":"Max Concurrent Calls","default":60},"max_calls_per_caller":{"type":"integer","maximum":100,"minimum":1,"title":"Max Calls Per Caller","default":2},"answer_hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"forwarding":{"anyOf":[{"$ref":"#/components/schemas/ServiceForwardingConfig-Input"},{"type":"null"}]}},"type":"object","title":"ServiceVoiceConfig","description":"Per-service voice pipeline tuning. Overrides workspace/env defaults.\n\nEach field is optional — None means inherit from the layer above\n(workspace VoiceSettings → env vars → hardcoded defaults).\n\nA field is read only by the families whose ``reads`` list it (``platform_lib.config.voice_families.specs``); a save\naccepts the others and reports them as ignored."},"SilencePolicy":{"properties":{"max_closing_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Closing Attempts","default":2},"max_cap_warning_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Cap Warning Attempts","default":2},"cap_warning_retry_seconds":{"type":"number","maximum":60,"minimum":1,"title":"Cap Warning Retry Seconds","default":10}},"additionalProperties":false,"type":"object","title":"SilencePolicy","description":"Per-service delivery retries around the signed silence cadence."},"LanguageProviderEntry":{"properties":{"provider":{"type":"string","enum":["cartesia","elevenlabs"],"title":"Provider"},"config":{"additionalProperties":true,"type":"object","maxProperties":20,"title":"Config"}},"type":"object","required":["provider"],"title":"LanguageProviderEntry","description":"Per-language TTS provider configuration."},"RealtimeSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","enum":["gpt-realtime-2.1","gpt-realtime-2.1-mini"]},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"$ref":"#/components/schemas/RealtimeCustomVoice"},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.25},{"type":"null"}],"title":"Speed"},"noise_reduction":{"anyOf":[{"type":"string","enum":["near_field","far_field","off"]},{"type":"null"}],"title":"Noise Reduction","description":"Input noise reduction. Omit or set null to use the Platform default; set 'off' to disable it."},"noise_reduction_strength":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Noise Reduction Strength","description":"OpenAI audio.input.noise_reduction.strength. Higher values suppress more noise.","docs_url":"https://developers.openai.com/api/reference/resources/realtime/client-events"},"transcription":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTranscriptionConfig"},{"type":"null"}]},"turn_detection":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/RealtimeServerVadConfig"},{"$ref":"#/components/schemas/RealtimeSemanticVadConfig"}],"discriminator":{"propertyName":"type","mapping":{"semantic_vad":"#/components/schemas/RealtimeSemanticVadConfig","server_vad":"#/components/schemas/RealtimeServerVadConfig"}}},{"type":"null"}],"title":"Turn Detection"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"max_output_tokens":{"anyOf":[{"type":"integer","maximum":4096,"minimum":1},{"type":"string","const":"inf"},{"type":"null"}],"title":"Max Output Tokens"},"truncation":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTruncationConfig"},{"type":"null"}]},"required_tool_on_first_caller_turn":{"anyOf":[{"type":"string","maxLength":256,"minLength":1,"pattern":"^[A-Za-z_][A-Za-z0-9_.:-]*$"},{"type":"null"}],"title":"Required Tool On First Caller Turn","description":"Force one named function on the first caller-generated response, excluding the inbound greeting, then restore automatic tool choice. Runtime accepts this only for source_override='test' sessions and tools that the executor verifies are read-only or side-effect-free."}},"additionalProperties":false,"type":"object","title":"RealtimeSessionConfig","description":"Typed OpenAI Realtime session controls for a service."},"RealtimeCustomVoice":{"properties":{"id":{"type":"string","maxLength":256,"minLength":1,"pattern":"^voice_[A-Za-z0-9_-]+$","title":"Id"}},"additionalProperties":false,"type":"object","required":["id"],"title":"RealtimeCustomVoice","description":"Approved OpenAI custom voice reference."},"RealtimeTranscriptionConfig":{"properties":{"model":{"type":"string","const":"gpt-transcribe","title":"Model","default":"gpt-transcribe"},"language":{"anyOf":[{"type":"string","enum":["af","ar","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","es","et","fa","fi","fr","gl","gu","he","hi","hr","hu","hy","id","is","it","iw","ja","ka","kk","kn","ko","lt","lv","mi","mk","ml","mr","ms","nb","ne","nl","no","pl","pt","ro","ru","sk","sl","sr","sv","sw","ta","te","th","tl","tr","uk","ur","vi","zh","afr","amh","ara","aze","bel","ben","bos","bul","cat","ces","cmn","cym","dan","deu","ell","eng","est","fas","fil","fin","fra","gle","glg","guj","heb","hin","hrv","hun","hye","ind","isl","ita","jpn","kan","kat","kaz","kor","lav","lit","mal","mar","mkd","mon","mri","msa","mya","nep","nld","nor","pol","por","ron","rus","slk","slv","som","spa","srp","swa","swe","tam","tel","tgl","tha","tur","ukr","urd","vie","yue","zh-cn","zh-hk","zh-tw"]},{"type":"null"}],"title":"Language"},"prompt":{"anyOf":[{"type":"string","maxLength":1024,"minLength":1},{"type":"null"}],"title":"Prompt"},"keywords":{"anyOf":[{"items":{"type":"string","maxLength":256,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keywords","description":"Literal transcription hints. Unset, use the service keyterms.","docs_url":"https://developers.openai.com/api/docs/guides/transcription"}},"additionalProperties":false,"type":"object","title":"RealtimeTranscriptionConfig","description":"Asynchronous caller-audio transcription used for transcripts and observability."},"RealtimeServerVadConfig":{"properties":{"type":{"type":"string","const":"server_vad","title":"Type","default":"server_vad"},"threshold":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Threshold"},"prefix_padding_ms":{"anyOf":[{"type":"integer","maximum":5000,"minimum":0},{"type":"null"}],"title":"Prefix Padding Ms"},"silence_duration_ms":{"anyOf":[{"type":"integer","maximum":3000,"minimum":200},{"type":"null"}],"title":"Silence Duration Ms"}},"additionalProperties":false,"type":"object","title":"RealtimeServerVadConfig","description":"Volume-based turn detection controls."},"RealtimeSemanticVadConfig":{"properties":{"type":{"type":"string","const":"semantic_vad","title":"Type","default":"semantic_vad"},"eagerness":{"type":"string","enum":["auto","low","medium","high"],"title":"Eagerness","default":"auto"}},"additionalProperties":false,"type":"object","title":"RealtimeSemanticVadConfig","description":"Semantic turn detection controls."},"RealtimeTruncationConfig":{"properties":{"type":{"type":"string","enum":["auto","disabled","retention_ratio"],"title":"Type","description":"Use auto or retention_ratio. Legacy disabled values are readable but refused by voice sessions.","default":"auto","docs_url":"https://developers.openai.com/api/docs/guides/voice-latency-cost?api=realtime#truncation"},"retention_ratio":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Retention Ratio"},"post_instructions_tokens":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Post Instructions Tokens"}},"additionalProperties":false,"type":"object","title":"RealtimeTruncationConfig","description":"Conversation context truncation strategy."},"ElevenRealtimeSessionConfig":{"properties":{"voice":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Voice"},"model":{"anyOf":[{"type":"string","const":"eleven_realtime_v1_mini"},{"type":"null"}],"title":"Model"}},"additionalProperties":false,"type":"object","required":["voice"],"title":"ElevenRealtimeSessionConfig","description":"Eleven Realtime controls for a service: the ElevenLabs voice it speaks in, and the model."},"GrokVoiceSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"grok-voice-3.0"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["altair","ara","atlas","aurora","carina","castor","celeste","cosmo","eve","helios","helix","iris","kepler","leo","liora","lumen","luna","lux","naksh","orion","perseus","rex","rigel","sal","sirius","ursa","zagan","zenith"]},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.7},{"type":"null"}],"title":"Speed"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","high"]},{"type":"null"}],"title":"Reasoning Effort"},"keyterms":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keyterms","description":"Transcription hints. Unset, use the service keyterms. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"},"language_hint":{"anyOf":[{"type":"string","enum":["en","ar-EG","ar-SA","ar-AE","bn","zh","fr","de","hi","id","it","ja","ko","pt-BR","pt-PT","ru","es-MX","es-ES","tr","vi"]},{"type":"null"}],"title":"Language Hint"},"replace":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":100,"minLength":1},"propertyNames":{"maxLength":100,"minLength":1},"type":"object","maxProperties":100,"minProperties":1},{"type":"null"}],"title":"Replace","description":"Pronunciation replacements: a phrase the agent says mapped to how xAI speaks it. Matched case-insensitively on whole words, longest key first. Keys and values are stripped, and keys that differ only by case are refused. xAI changes the audio and not its transcript; the runtime applies the same map to the transcript before the output checks read it, so they judge what the caller hears. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"}},"additionalProperties":false,"type":"object","title":"GrokVoiceSessionConfig","description":"Grok Voice controls for a service. Every field is optional: the provider supplies the defaults."},"GptLiveSessionConfig":{"properties":{"model":{"type":"string","enum":["gpt-live-1","gpt-live-1.1-leopard-2-alpha"],"title":"Model","default":"gpt-live-1"},"voice":{"type":"string","enum":["alloy","ash","ballad","beacon","bossa","brise","cedar","cinder","coral","delta","echo","flitz","gleam","harema","juni","marin","meridian","nira","noeul","nuri","quartz","ripple","sage","shida","shimmer","sillage","stone","tempo","verse","vesper","willow"],"title":"Voice","default":"marin"}},"additionalProperties":false,"type":"object","title":"GptLiveSessionConfig","description":"Live startup settings. Language comes from the agent's instructions, not a protocol field."},"PhonicSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"phonic-1"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["sabrina","grant","sandeep","landon","shelby","mason","virginia","eleanor","gabrielle","paula","nolan","roberto","hikari","tomoya","eloise","jerome","daniela","juliana","valeria","eduardo","henri","kourtney","kaspar","mei","stella","karoline","amelia","william","joon","hana","mia","derek","divya","alice","karin","phillip","jackson","gina","michelle"]},{"type":"null"}],"title":"Voice"},"intelligence_level":{"anyOf":[{"type":"string","enum":["standard","high"]},{"type":"null"}],"title":"Intelligence Level"},"audio_speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.5},{"type":"null"}],"title":"Audio Speed"},"vad":{"anyOf":[{"$ref":"#/components/schemas/PhonicVadConfig"},{"type":"null"}]},"boosted_keywords":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Boosted Keywords","description":"Recognition hints. Unset, use the service keyterms."},"pronunciation_dictionary":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhonicPronunciation"},"type":"array","maxItems":100},{"type":"null"}],"title":"Pronunciation Dictionary"},"multilingual_mode":{"anyOf":[{"type":"string","enum":["auto","request","initial"]},{"type":"null"}],"title":"Multilingual Mode"}},"additionalProperties":false,"type":"object","title":"PhonicSessionConfig","description":"Phonic controls for a service."},"PhonicVadConfig":{"properties":{"threshold":{"anyOf":[{"type":"number","maximum":0.8,"minimum":0.2},{"type":"null"}],"title":"Threshold"},"prebuffer_duration_ms":{"anyOf":[{"type":"integer","maximum":2000,"minimum":0},{"type":"null"}],"title":"Prebuffer Duration Ms"},"min_speech_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Speech Duration Ms"},"min_silence_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Silence Duration Ms"},"min_words_to_interrupt":{"anyOf":[{"type":"integer","maximum":10,"minimum":1},{"type":"null"}],"title":"Min Words To Interrupt"}},"additionalProperties":false,"type":"object","title":"PhonicVadConfig","description":"Phonic's server VAD. Unset fields keep Phonic's defaults."},"PhonicPronunciation":{"properties":{"word":{"type":"string","maxLength":30,"minLength":1,"title":"Word"},"pronunciation":{"type":"string","maxLength":50,"minLength":1,"title":"Pronunciation"}},"additionalProperties":false,"type":"object","required":["word","pronunciation"],"title":"PhonicPronunciation"},"StaffedHours":{"properties":{"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone"},"windows":{"items":{"$ref":"#/components/schemas/StaffedWindow"},"type":"array","maxItems":50,"minItems":1,"title":"Windows"},"closed_on_us_federal_holidays":{"type":"boolean","title":"Closed On Us Federal Holidays","default":false},"closed_dates":{"items":{"type":"string","maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"type":"array","maxItems":100,"title":"Closed Dates"}},"type":"object","required":["timezone","windows"],"title":"StaffedHours","description":"When the people who answer a service's lines are there.\n\nA weekday with no window is closed all day. A closed date, and a federal holiday when the service closes for\nthem, close the whole day whatever the windows say. Everything else is open exactly where a window covers the\nwall-clock time of the zone."},"StaffedWindow":{"properties":{"day":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"title":"Day"},"open":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Open"},"close":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Close"}},"type":"object","required":["day","open","close"],"title":"StaffedWindow","description":"One stretch of one weekday that people answer: from ``open`` up to, not including, ``close``."},"ServiceForwardingConfig-Input":{"properties":{"forward_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"warm_transfer_answer_timeout_s":{"type":"integer","maximum":55,"minimum":10,"title":"Warm Transfer Answer Timeout S","default":30},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue","default":"hand_over"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss","default":"hand_back"},"receiver_classifier":{"type":"string","enum":["twilio_amd","platform"],"title":"Receiver Classifier","default":"twilio_amd"},"approved_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Approved Destinations"},"fallback_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"test_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":20,"title":"Test Destinations"},"verification_callers":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/PhoneE164"},"type":"object","maxProperties":10,"title":"Verification Callers"},"hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"after_hours_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"default_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"transfer_reasons":{"items":{"$ref":"#/components/schemas/TransferReason"},"type":"array","maxItems":20,"title":"Transfer Reasons"},"destination_hours":{"additionalProperties":{"$ref":"#/components/schemas/DestinationHours"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Destination Hours"},"unsupported_language_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"type":"object","required":["forward_to"],"title":"ServiceForwardingConfig","description":"Per-service call-forwarding destination + transfer mechanism.\n\nThis block gates the ``forward_call`` tool: None means the agent cannot\ntransfer at all. When present, ``forward_to`` picks the destination mode,\nand the tool schema follows it — a static service gets an argument-less\ntool, a dynamic one gets a required ``phone_number`` that must be one of\n``approved_destinations`` (none approved means no tool). Nothing cascades:\na service is one mode or the other. ``fallback_to`` is no mode: it is the\nline the safe exit dials, in either, and ``forward_call`` never offers it.\nA call tagged as a test reaches only ``test_destinations``, in either mode, unless\nits caller is one of ``verification_callers``.\n``hours`` is none either: on a dynamic service, a transfer outside its staffed\nhours dials ``after_hours_destination`` whichever approved line was asked for, unless that line keeps\nhours of its own in ``destination_hours``.\nA dynamic service can also name a ``default_destination``, the line a transfer that names none dials. A service\nin either mode can list the ``transfer_reasons`` each of its transfers names and the call records."},"DialE164":{"type":"string","maxLength":16,"minLength":2},"PhoneE164":{"type":"string","maxLength":16,"minLength":2},"TransferReason":{"properties":{"key":{"$ref":"#/components/schemas/TransferReasonKey"},"description":{"$ref":"#/components/schemas/DescriptionString","maxLength":200}},"additionalProperties":false,"type":"object","required":["key","description"],"title":"TransferReason","description":"One reason a service's transfers name (``ServiceForwardingConfig.transfer_reasons``)."},"TransferReasonKey":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9_-]*[a-z0-9]$"},"DestinationHours":{"properties":{"hours":{"$ref":"#/components/schemas/StaffedHours"},"after_hours":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["hours"],"title":"DestinationHours","description":"One approved line's own staffed hours and after-hours line, in place of its service's\n(``ServiceForwardingConfig.destination_hours``)."},"ContextKeySpec":{"properties":{"key":{"$ref":"#/components/schemas/SlugString"},"type":{"type":"string","enum":["string","number"],"title":"Type"},"description":{"$ref":"#/components/schemas/DescriptionString"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["key","type","description","required"],"title":"ContextKeySpec","description":"One key a conversation may supply as start-time context for a service.\n\nThe value is validated against ``type`` at conversation start; a tool can then\nbind the key to one of its parameters (injected, hidden from the model)."},"SlugString":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$"},"CrisisCall911Reply":{"properties":{"en":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1},"es":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1}},"additionalProperties":false,"type":"object","required":["en","es"],"title":"CrisisCall911Reply","description":"Per-service wording added when a caller already in crisis asks for emergency dispatch."},"ContactLineInput":{"properties":{"kind":{"type":"string","enum":["crisis","domestic_violence","child_abuse","poison_help","clinical_24h","front_desk"],"title":"Kind"},"number":{"$ref":"#/components/schemas/DialE164"},"spoken_name":{"$ref":"#/components/schemas/NameString","maxLength":80},"spoken_name_es":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"area":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"available_24h":{"type":"boolean","title":"Available 24H"},"may_read_aloud":{"type":"boolean","title":"May Read Aloud"}},"additionalProperties":false,"type":"object","required":["kind","number","spoken_name","available_24h","may_read_aloud"],"title":"ContactLineInput","description":"Save-time number policy; persisted declarations remain readable after policy changes."},"ServiceOutputChecksRequest":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/PhiUnverifiedCheck","description":"On a voice call, `cut` stops a reply that reads something from a patient's record to a caller who has not\nverified, and the caller hears a correction in its place. `off`, the platform default, does not run the check."},"blocklisted_number":{"$ref":"#/components/schemas/BlocklistedNumberCheck","description":"`cut`, the platform default, stops a reply that speaks a number on the platform phone blocklist, and the caller\nhears the no-confirmed-number correction in its place. `off` lets the reply speak it. A listed number is still\nnever dialed and is still refused as a destination."},"misspelled_word":{"$ref":"#/components/schemas/MisspelledWordCheck","description":"`cut`, the platform default, stops a reply that spells back, letter by letter, a word close to but not the one\nthe caller just said. `off` lets the spelling play."},"dosing_or_med_change":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that gives dosing advice or tells the caller to change a medication. `cut` (the platform default)\nreplaces it with a correction, `count` lets it play and counts it, `off` lets it play."},"diagnosis":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says what is wrong with the caller, or that a symptom needs no care. `cut`, `count` or `off`."},"false_confirmation":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says a booking, message or other action is done when no write on the call backs it. `cut`,\n`count` or `off`."},"dispatch_promise":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says emergency help is called, sent or on the way. `cut`, `count` or `off`."},"action_promise":{"$ref":"#/components/schemas/ActionPromiseCheck","description":"A reply that called no tool and tells the caller the agent is doing something now, on text or a realtime call.\n`retry`, the platform default, gives the agent one more go with a note to act or say what it can't do. `off`\nsends the reply as written."},"unbacked_action_claims":{"$ref":"#/components/schemas/UnbackedActionClaimsCheck","description":"Text only. A reply that says something was done for the client, such as an escalation, a handoff or a message\npassed to a team, when no tool that succeeded in the turn did it. `off`, the platform default, does not read the\nreply. `log` reads it and counts a claim it finds; the reply goes out as written. `enforce` holds the reply back\nand gives the agent one more go with a note to call the tool first or not claim it; a second reply that still\nclaims it goes out cut before the claim, with the false-confirmation correction in its place."}},"additionalProperties":false,"type":"object","title":"ServiceOutputChecksRequest","description":"The reply checks a service or a workspace sets. A key left out inherits: a service's from the workspace default,\nthe workspace's from the platform default. Every key can be set to `off`."},"PhiUnverifiedCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"PhiUnverifiedCheck"},"BlocklistedNumberCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"BlocklistedNumberCheck"},"MisspelledWordCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"MisspelledWordCheck"},"CheckerLabelCheck":{"properties":{"mode":{"type":"string","enum":["cut","count","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"CheckerLabelCheck"},"ActionPromiseCheck":{"properties":{"mode":{"type":"string","enum":["retry","off"],"title":"Mode","default":"retry"}},"additionalProperties":false,"type":"object","title":"ActionPromiseCheck"},"UnbackedActionClaimsCheck":{"properties":{"mode":{"type":"string","enum":["off","log","enforce"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"UnbackedActionClaimsCheck"},"ServiceEmergencyFloorRequest":{"properties":{"text_self_harm":{"$ref":"#/components/schemas/TextSelfHarmFloor","description":"A message that says the person is thinking about harming or killing themselves. `enforce`, the platform default,\nanswers it with the floor's crisis script (the region's crisis line, the service's crisis contacts and the\nemergency number) in place of the agent's reply. `off` leaves it to the agent."},"text_medical":{"$ref":"#/components/schemas/TextMedicalFloor","description":"A message that describes a medical emergency, such as chest pain or trouble breathing. `shadow`, the platform\ndefault, detects and counts it and opens the floor's hold, and the agent's reply goes out. `enforce` answers it\nwith the floor's emergency-number script instead. `off` leaves it to the agent."},"held_text":{"$ref":"#/components/schemas/HeldTextFloor","description":"A message on a conversation an operator holds. `enforce`, the platform default, answers it with the floor's\nscript when it names any emergency. `off` leaves every held message to the operator."}},"additionalProperties":false,"type":"object","title":"ServiceEmergencyFloorRequest","description":"How the medical-emergency and crisis floor acts on text conversations (SMS, email, web chat and the other\nmessaging channels), voice notes and simulations. A key left out inherits: a service's from the workspace default,\nthe workspace's from the platform default, which is today's behavior. Every key can be set to `off`, and then the\nfloor neither replaces nor alters the reply: the agent's own reply and tools run, no hold opens, and the hit is\nonly counted. A voice call's floor is not set here."},"TextSelfHarmFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"TextSelfHarmFloor"},"TextMedicalFloor":{"properties":{"mode":{"type":"string","enum":["enforce","shadow","off"],"title":"Mode","default":"shadow"}},"additionalProperties":false,"type":"object","title":"TextMedicalFloor"},"HeldTextFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"HeldTextFloor"},"ConversationAuditSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"checks":{"items":{"$ref":"#/components/schemas/ConversationAuditCheck"},"type":"array","maxItems":4,"minItems":1,"title":"Checks"},"threshold":{"type":"integer","maximum":100,"minimum":1,"title":"Threshold","default":80}},"additionalProperties":false,"type":"object","title":"ConversationAuditSettings"},"ConversationAuditCheck":{"type":"string","enum":["obvious_errors","missed_escalation","wrong_information","missed_safety_event"]},"ServicePlanResponse":{"properties":{"problems":{"items":{"$ref":"#/components/schemas/SaveProblem"},"type":"array","title":"Problems","description":"Each refusal the save would answer with, in the order it meets them. Empty when every check passes."},"changes":{"anyOf":[{"items":{"$ref":"#/components/schemas/FieldChange"},"type":"array"},{"type":"null"}],"title":"Changes","description":"What the save would change in the stored service, by field. A create's lists every field it would store, and\na save that changes nothing has none. Null when the request does not apply to the stored config, so there is no\nconfig to compare (`readiness_unavailable` is `config_unreadable`)."},"families":{"anyOf":[{"items":{"$ref":"#/components/schemas/FamilyDelivery"},"type":"array"},{"type":"null"}],"title":"Families","description":"Each version set's family, `release` first. Empty for a text service, and null when it can't be read (see\n`readiness_unavailable`)."},"starts":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetStarts"},"type":"array"},{"type":"null"}],"title":"Starts","description":"The starts each version set takes, as `readiness.starts` lists them. Null exactly when `families` is null."},"readiness":{"anyOf":[{"$ref":"#/components/schemas/ServiceReadinessResponse"},{"type":"null"}],"description":"The service's readiness readback (`GET .../readiness`) for the config the save would store. A create's has no\nvoice use case bound. Null when it can't be read (see `readiness_unavailable`)."},"readiness_unavailable":{"anyOf":[{"$ref":"#/components/schemas/Unavailable"},{"type":"null"}],"description":"Why `readiness` is null, and `families` too unless it is `channel_manager_unavailable`: the agent is not in the\nworkspace, a version set pins an agent or context graph version that doesn't exist or that no check cleared, the request does not apply to\nthe stored config, the config the save would store is incompatible with readiness, or channel-manager can't be\nread. Null when it is read."}},"type":"object","required":["problems","changes","families","starts","readiness","readiness_unavailable"],"title":"ServicePlanResponse","description":"What a service save would refuse, change and run. Nothing is written."},"SaveProblem":{"properties":{"status":{"type":"integer","title":"Status","description":"The HTTP status the save would answer with."},"code":{"type":"string","title":"Code","description":"What is refused, as a stable code: the refusal's own `code`, `error` or `error_code` when it carries one, else\nthe code of the check that refuses."},"message":{"type":"string","title":"Message","description":"What is refused, as the refusal says it."},"where":{"items":{"type":"string"},"type":"array","title":"Where","description":"The fields of the service the refusal is about, as dotted paths. Empty when it is about the save as a whole,\nsuch as who makes it."},"detail":{"$ref":"#/components/schemas/JsonValue","description":"The `detail` the save would answer with, exactly."}},"type":"object","required":["status","code","message","where","detail"],"title":"SaveProblem","description":"One refusal the save would answer with."},"JsonValue":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"},{"items":{"$ref":"#/components/schemas/JsonValue"},"type":"array"},{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},{"type":"null"}]},"FieldChange":{"properties":{"path":{"items":{"type":"string"},"type":"array","title":"Path","description":"Where the field is: `name`, or a key of the service's config, then each key under it."},"change":{"type":"string","enum":["added","removed","changed"],"title":"Change"},"before":{"$ref":"#/components/schemas/JsonValue","description":"What is stored. Null for an added field."},"after":{"$ref":"#/components/schemas/JsonValue","description":"What the save would store. Null for a removed field."}},"type":"object","required":["path","change"],"title":"FieldChange","description":"A field the save would change."},"FamilyDelivery":{"properties":{"version_set":{"$ref":"#/components/schemas/ReadinessLabel"},"family":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Family"},"source":{"type":"string","enum":["service","agent","engine_default","agent_missing"],"title":"Source"},"capabilities":{"anyOf":[{"$ref":"#/components/schemas/SessionCapabilities"},{"type":"null"}]},"dynamic_behaviors_configured":{"type":"boolean","title":"Dynamic Behaviors Configured"},"ignored_settings":{"items":{"type":"string"},"type":"array","title":"Ignored Settings","description":"The service settings, as dotted paths from the service (keyterms, voice_config.max_buffer_delay_ms), that the service sets to a non-default value and this family does not read. Advisory: the config is valid and saves, and a setting listed here may still be refused (see family_refusals). Empty, and not known, when ignored_settings_known is false."},"ignored_settings_known":{"type":"boolean","title":"Ignored Settings Known","description":"Whether ignored_settings was read: false when the version set's family is unknown or the stored service no longer validates, so an empty list says nothing."},"family_judgement":{"type":"string","enum":["judged","not_judged"],"title":"Family Judgement","description":"judged: family_refusals is every refusal the voice family contract and the family's delivery rules find for this version set, empty when the family runs it as authored. not_judged: the version set could not be judged (family_not_judged says why), so family_refusals may be incomplete and an empty one is never a pass."},"family_refusals":{"items":{"$ref":"#/components/schemas/FamilyRefusal"},"type":"array","title":"Family Refusals","description":"Each reason the family cannot run this version set as stored, with the code, message and fields a save refuses it with: the family's admission for the workspace when the service names the family, its delivery rules held to the whole config, then the contract's rules on the program the set's agent version runs. A client shows each one's code, message and fields and computes none. Messages have every digit redacted; a save plan's problems keep the exact text."},"family_not_judged":{"anyOf":[{"$ref":"#/components/schemas/FamilyNotJudged"},{"type":"null"}],"description":"Why the version set was not judged, when family_judgement is not_judged; null otherwise."},"refusals":{"items":{"$ref":"#/components/schemas/FamilyPolicyRefusal"},"type":"array","title":"Refusals","description":"What the config the save would store asks of the family that it can't deliver (warm transfer,\nservice-written lines), whether or not this save moves the version set. Empty when it delivers it all. Kept as\nit was for a family off the voice family contract; for a family on it, `family_refusals` is the list a client\nshows, which holds these findings with the contract's."}},"type":"object","required":["version_set","family","source","capabilities","dynamic_behaviors_configured","ignored_settings","ignored_settings_known","family_judgement","family_refusals","family_not_judged","refusals"],"title":"FamilyDelivery","description":"The voice family one version set would run, as readiness reads it, and the family's delivery rules held to\nthe whole config."},"ReadinessLabel":{"type":"string"},"SessionCapabilities":{"properties":{"multi_state":{"type":"boolean","title":"Multi State"},"dynamic_behaviors":{"type":"boolean","title":"Dynamic Behaviors"},"completion_navigation":{"type":"boolean","title":"Completion Navigation"},"channels":{"items":{"type":"string","enum":["app","phone","playground","test_call"]},"type":"array","title":"Channels"},"outbound_calls":{"type":"boolean","title":"Outbound Calls"},"operator_takeover":{"type":"boolean","title":"Operator Takeover"},"end_call":{"type":"boolean","title":"End Call"},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"authored_lines":{"type":"string","enum":["tts","model_checked","clips"],"title":"Authored Lines","default":"clips"},"floor_enforced":{"type":"boolean","title":"Floor Enforced","default":false},"state_carrier":{"anyOf":[{"type":"string","enum":["session_update_and_note","note_only"]},{"type":"null"}],"title":"State Carrier"},"typed_guardrails":{"type":"boolean","title":"Typed Guardrails","default":false}},"type":"object","required":["multi_state","dynamic_behaviors","completion_navigation","channels","outbound_calls","operator_takeover","end_call","warm_transfer","authored_lines","floor_enforced","state_carrier","typed_guardrails"],"title":"SessionCapabilities"},"FamilyRefusal":{"properties":{"code":{"anyOf":[{"$ref":"#/components/schemas/FamilyRefusalCode"},{"type":"string","enum":["family_warm_transfer_unsupported","family_cannot_speak_service_lines"]}],"title":"Code"},"message":{"$ref":"#/components/schemas/ReadinessLabel","description":"Names the family and the fix, with every digit redacted."},"fields":{"items":{"$ref":"#/components/schemas/ReadinessLabel"},"type":"array","title":"Fields","description":"What the author changes, as dotted paths."}},"type":"object","required":["code","message","fields"],"title":"FamilyRefusal"},"FamilyRefusalCode":{"type":"string","enum":["voice_family_not_served","voice_family_residency","voice_family_agent_version","voice_family_direct_program","voice_family_graph_shape","voice_family_guardrails","voice_family_dynamic_behaviors","voice_family_completion_navigation","voice_family_warm_transfer","voice_family_service_lines","voice_family_outbound","voice_family_settings"]},"FamilyNotJudged":{"properties":{"code":{"$ref":"#/components/schemas/FamilyNotJudgedCode"},"message":{"$ref":"#/components/schemas/ReadinessLabel"},"fields":{"items":{"$ref":"#/components/schemas/ReadinessLabel"},"type":"array","title":"Fields","description":"Where the author looks, as dotted paths."}},"type":"object","required":["code","message","fields"],"title":"FamilyNotJudged"},"FamilyNotJudgedCode":{"type":"string","enum":["agent_version_missing","family_not_on_contract","voice_config_unreadable","graph_missing","graph_version_missing","graph_version_unreadable"]},"FamilyPolicyRefusal":{"properties":{"code":{"type":"string","enum":["family_warm_transfer_unsupported","family_cannot_speak_service_lines"],"title":"Code"},"message":{"type":"string","title":"Message"},"fields":{"items":{"type":"string"},"type":"array","title":"Fields"}},"type":"object","required":["code","message","fields"],"title":"FamilyPolicyRefusal"},"VersionSetStarts":{"properties":{"version_set":{"$ref":"#/components/schemas/ReadinessLabel"},"kinds":{"items":{"$ref":"#/components/schemas/StartKind"},"type":"array","title":"Kinds"},"kinds_known":{"type":"boolean","title":"Kinds Known","description":"False when the version set's family is unknown (families[].source is agent_missing): kinds is then empty and says nothing; a client offers no start from it and shows why."}},"type":"object","required":["version_set","kinds","kinds_known"],"title":"VersionSetStarts"},"StartKind":{"type":"string","enum":["text","test_call","app_session"]},"ServiceReadinessResponse":{"properties":{"voice_use_cases":{"items":{"$ref":"#/components/schemas/VoiceUseCase"},"type":"array","title":"Voice Use Cases"},"lines":{"items":{"$ref":"#/components/schemas/Line"},"type":"array","title":"Lines"},"families":{"items":{"$ref":"#/components/schemas/BoundFamily"},"type":"array","title":"Families"},"starts":{"items":{"$ref":"#/components/schemas/VersionSetStarts"},"type":"array","title":"Starts","description":"Each version set, release first, with the starts its service takes: a client offers these and no other. A kind listed is one the platform runs for this service's channel and family; it is not a judgement that the start succeeds (families[].family_judgement and family_refusals say that). Every service has an entry per version set, a text one too."},"policies":{"$ref":"#/components/schemas/Policies"},"launch":{"$ref":"#/components/schemas/Launch"}},"type":"object","required":["voice_use_cases","lines","families","starts","policies","launch"],"title":"ServiceReadinessResponse"},"VoiceUseCase":{"properties":{"label":{"$ref":"#/components/schemas/ReadinessLabel"},"channel":{"anyOf":[{"$ref":"#/components/schemas/ReadinessLabel"},{"type":"null"}]},"available":{"type":"boolean","title":"Available"},"fallback_forwarding_number_set":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fallback Forwarding Number Set","description":"Whether an inbound voice use case has a fallback forwarding number, where inbound calls forward when channel-manager does not answer. Informational: unset does not block a save. Null for an outbound or unavailable use case. The number itself is never returned."}},"type":"object","required":["label","channel","available","fallback_forwarding_number_set"],"title":"VoiceUseCase"},"Line":{"properties":{"kind":{"$ref":"#/components/schemas/LineKind"},"label":{"$ref":"#/components/schemas/ReadinessLabel"},"use_cases":{"items":{"$ref":"#/components/schemas/Dialability"},"type":"array","title":"Use Cases"}},"type":"object","required":["kind","label","use_cases"],"title":"Line"},"LineKind":{"type":"string","enum":["forward_to","approved_destination","fallback_to","after_hours_destination","test_destination"]},"Dialability":{"properties":{"label":{"$ref":"#/components/schemas/ReadinessLabel"},"channel":{"anyOf":[{"$ref":"#/components/schemas/ReadinessLabel"},{"type":"null"}]},"will_dial":{"type":"boolean","title":"Will Dial","description":"Passes the use case's current dial gate when this line is selected."},"reason":{"anyOf":[{"$ref":"#/components/schemas/UseCaseDialability"},{"type":"string","const":"use_case_missing"}],"title":"Reason"}},"type":"object","required":["label","channel","will_dial","reason"],"title":"Dialability"},"UseCaseDialability":{"type":"string","enum":["own_number","listed","not_listed"]},"BoundFamily":{"properties":{"version_set":{"$ref":"#/components/schemas/ReadinessLabel"},"family":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Family"},"source":{"type":"string","enum":["service","agent","engine_default","agent_missing"],"title":"Source"},"capabilities":{"anyOf":[{"$ref":"#/components/schemas/SessionCapabilities"},{"type":"null"}]},"dynamic_behaviors_configured":{"type":"boolean","title":"Dynamic Behaviors Configured"},"ignored_settings":{"items":{"type":"string"},"type":"array","title":"Ignored Settings","description":"The service settings, as dotted paths from the service (keyterms, voice_config.max_buffer_delay_ms), that the service sets to a non-default value and this family does not read. Advisory: the config is valid and saves, and a setting listed here may still be refused (see family_refusals). Empty, and not known, when ignored_settings_known is false."},"ignored_settings_known":{"type":"boolean","title":"Ignored Settings Known","description":"Whether ignored_settings was read: false when the version set's family is unknown or the stored service no longer validates, so an empty list says nothing."},"family_judgement":{"type":"string","enum":["judged","not_judged"],"title":"Family Judgement","description":"judged: family_refusals is every refusal the voice family contract and the family's delivery rules find for this version set, empty when the family runs it as authored. not_judged: the version set could not be judged (family_not_judged says why), so family_refusals may be incomplete and an empty one is never a pass."},"family_refusals":{"items":{"$ref":"#/components/schemas/FamilyRefusal"},"type":"array","title":"Family Refusals","description":"Each reason the family cannot run this version set as stored, with the code, message and fields a save refuses it with: the family's admission for the workspace when the service names the family, its delivery rules held to the whole config, then the contract's rules on the program the set's agent version runs. A client shows each one's code, message and fields and computes none. Messages have every digit redacted; a save plan's problems keep the exact text."},"family_not_judged":{"anyOf":[{"$ref":"#/components/schemas/FamilyNotJudged"},{"type":"null"}],"description":"Why the version set was not judged, when family_judgement is not_judged; null otherwise."}},"type":"object","required":["version_set","family","source","capabilities","dynamic_behaviors_configured","ignored_settings","ignored_settings_known","family_judgement","family_refusals","family_not_judged"],"title":"BoundFamily"},"Policies":{"properties":{"forward_call_configured":{"type":"boolean","title":"Forward Call Configured"},"warm_transfer":{"type":"boolean","title":"Warm Transfer"},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss"},"hours_configured":{"type":"boolean","title":"Hours Configured"},"default_destination_configured":{"type":"boolean","title":"Default Destination Configured","description":"A dynamic service names the line a transfer dials when the agent names none."},"transfer_reasons":{"items":{"$ref":"#/components/schemas/ReadinessLabel"},"type":"array","title":"Transfer Reasons","description":"The keys of the reasons every forward_call names and the call records, empty when none."},"destination_hours_configured":{"type":"boolean","title":"Destination Hours Configured"},"verification_callers_configured":{"type":"boolean","title":"Verification Callers Configured"},"unsupported_language_route":{"type":"boolean","title":"Unsupported Language Route"}},"type":"object","required":["forward_call_configured","warm_transfer","warm_transfer_on_queue","warm_transfer_on_miss","hours_configured","default_destination_configured","transfer_reasons","destination_hours_configured","verification_callers_configured","unsupported_language_route"],"title":"Policies"},"Launch":{"properties":{"demo_mode":{"type":"boolean","title":"Demo Mode"},"medical_emergency_ending":{"type":"string","enum":["stay_on_line","end_after_script"],"title":"Medical Emergency Ending"},"output_check_modes":{"$ref":"#/components/schemas/OutputCheckModes"},"test_callers_registered":{"type":"boolean","title":"Test Callers Registered"},"verification_callers_registered":{"type":"boolean","title":"Verification Callers Registered","description":"Every configured verification caller is a registered test caller; false when none are configured."},"human_line_configured":{"type":"boolean","title":"Human Line Configured","description":"A fallback_to or static forward_to is configured for the safe exit; pickup is not verified."},"answer_hours_configured":{"type":"boolean","title":"Answer Hours Configured","description":"The voice config sets answer_hours: outside them the agent takes no call."},"readiness_requires":{"items":{"type":"string","enum":["binding","service_active","residency","fleet","valkey","lakebase","platform_api","outside_answer_hours","openai_realtime","decisions","warehouse"]},"type":"array","title":"Readiness Requires","description":"What the live voice-call readiness check gates this service's phone calls on: the base set every call needs, outside_answer_hours when answer_hours are set, then the voice config's saved readiness_requires."},"effective_voice":{"anyOf":[{"$ref":"#/components/schemas/EffectiveVoice"},{"type":"null"}],"description":"What a gpt_realtime release version set opens its session with once each null model, voice and reasoning_effort resolves to the runtime's default. Null for any other family."}},"type":"object","required":["demo_mode","medical_emergency_ending","output_check_modes","test_callers_registered","verification_callers_registered","human_line_configured","answer_hours_configured","readiness_requires","effective_voice"],"title":"Launch"},"OutputCheckModes":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/ReadinessLabel"}},"type":"object","required":["phi_unverified"],"title":"OutputCheckModes","description":"Mode values follow the library's read model as it adds supported modes."},"EffectiveVoice":{"properties":{"session_provider":{"type":"string","const":"gpt_realtime","title":"Session Provider"},"model":{"type":"string","enum":["gpt-realtime-2.1","gpt-realtime-2.1-mini"],"title":"Model"},"voice":{"type":"string","maxLength":256,"title":"Voice"},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"],"title":"Reasoning Effort"}},"type":"object","required":["session_provider","model","voice","reasoning_effort"],"title":"EffectiveVoice"},"Unavailable":{"type":"string","enum":["agent_not_in_workspace","version_not_found","config_unreadable","config_incompatible","channel_manager_unavailable"]}}},"paths":{"/v1/{workspace_id}/services/plan":{"post":{"tags":["Services"],"summary":"Plan a service create","description":"Plan `POST /v1/{workspace_id}/services` with the body it takes, under its permission (`Service.create`) and scope. A permission the create would need for a field it sets (`Service.update`, `platform:admin`) is a problem, not a 403. Writes nothing: it runs the save's own checks and lists each refusal the save would answer with in `problems` (`status`, `code`, `message`, `where` and the save's exact `detail`), in the order the save meets them, where the save stops at the first. A check the save only reaches past an earlier refusal is skipped where it would read through what that refusal named: the version pins and the realtime pairing of an agent or a context graph the workspace lacks, the behavior pins of a version set whose versions don't resolve, and every check after the service config when what the save would store does not validate. A refusal only the write itself can raise, such as a pinned set archived since, is not listed. `changes` is the field diff against the stored service, `families` each version set's family with its capability row and the family's delivery rules held to the whole config, and `readiness` the readiness readback of what the save would store. Each family lists what the voice family contract refuses it for in `family_refusals` (`family_judgement` `judged`), or is `not_judged` with a code, which is never a pass; its messages have digits redacted, where `problems[].message` keeps the exact text. Read rate limit; audited as `service.plan.read`.","operationId":"plan-service-create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServiceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicePlanResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"422":{"description":"A body the save itself would not parse."}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## Plan a service update

> Plan \`PUT /v1/{workspace\_id}/services/{service\_id}\` with the body it takes, under its permission (\`Service.update\`) and scope. A permission the update would need for a field it sets (\`platform:admin\`) is a problem, not a 403. Writes nothing: it runs the save's own checks and lists each refusal the save would answer with in \`problems\` (\`status\`, \`code\`, \`message\`, \`where\` and the save's exact \`detail\`), in the order the save meets them, where the save stops at the first. A check the save only reaches past an earlier refusal is skipped where it would read through what that refusal named: the version pins and the realtime pairing of an agent or a context graph the workspace lacks, the behavior pins of a version set whose versions don't resolve, and every check after the service config when what the save would store does not validate. A refusal only the write itself can raise, such as a pinned set archived since, is not listed. \`changes\` is the field diff against the stored service, \`families\` each version set's family with its capability row and the family's delivery rules held to the whole config, and \`readiness\` the readiness readback of what the save would store. Each family lists what the voice family contract refuses it for in \`family\_refusals\` (\`family\_judgement\` \`judged\`), or is \`not\_judged\` with a code, which is never a pass; its messages have digits redacted, where \`problems\[].message\` keeps the exact text. Read rate limit; audited as \`service.plan.read\`.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"UpdateServiceRequest":{"properties":{"name":{"anyOf":[{"$ref":"#/components/schemas/NameString"},{"type":"null"}]},"description":{"anyOf":[{"$ref":"#/components/schemas/DescriptionString"},{"type":"null"}]},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"context_graph_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Context Graph Id","description":"Binds the service to this context graph, one of this workspace's. Leaving it out, or sending null, keeps what\nis stored. Setting it on a service that binds none is how the service comes to run workflow agent versions."},"keyterms":{"anyOf":[{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":500},{"type":"null"}],"title":"Keyterms"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"version_sets":{"additionalProperties":{"$ref":"#/components/schemas/VersionSet-Input"},"type":"object","title":"Version Sets","description":"Replaces the whole map: a version set left out of it is dropped, and `release` is required. Leaving the field\nout keeps what is stored. It cannot be cleared, so `null` is refused."},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/ServiceTag"},"type":"array","maxItems":50},{"type":"null"}],"title":"Tags"},"tool_capacity":{"anyOf":[{"type":"integer","maximum":10,"minimum":1},{"type":"null"}],"title":"Tool Capacity"},"channel_type":{"anyOf":[{"type":"string","enum":["voice","text"]},{"type":"null"}],"title":"Channel Type"},"environment":{"anyOf":[{"type":"string","enum":["sandbox","production"]},{"type":"null"}],"title":"Environment"},"demo_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Demo Mode","description":"Voice calls on this service open with only the recording notice, without the AI disclosure. For demos only,\nnever for a service that takes real callers."},"platform_caller_verification":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Platform Caller Verification","description":"Whether the platform verifies a caller who may match a patient record by full name and date of\nbirth. Off, the agent never asks a caller to verify, and every platform tool that reads a patient\nrecord refuses. The service's integration tools run either way, unless one of them verifies its\ncallers (`caller_verification_endpoint_id`)."},"caller_verification_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Caller Verification Endpoint Id","description":"The integration endpoint that verifies this service's callers, on a service with\n`platform_caller_verification` and `allow_unverified_integration_results` false: one of this\nworkspace's that declares `declarations.verifies` and never waits for approval under its\nintegration's `approval_policy`. `null` clears it, and leaving it out keeps what's stored. Takes effect\non the next call or turn."},"allow_unverified_integration_results":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Unverified Integration Results","description":"A dangerous bypass, off by default. On, results from the service's integration endpoints, reads and\nwrites, never count as a patient record for the output checker's unverified-caller check\n(`output_checks.phi_unverified`, which runs only on a service that sets it to `cut`), so the agent may read\nthem back to any caller, verified or not. Writes are still held to everything else, the platform's own\npatient reads still refuse until the caller verifies, and data queries and skills still count. Never on\nbeside `caller_verification_endpoint_id`. Every change is audited."},"voice_config":{"anyOf":[{"$ref":"#/components/schemas/ServiceVoiceConfig-Input"},{"type":"null"}],"description":"Replaces the voice block. `null` clears it, and leaving it out keeps what's stored."},"accepted_context":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContextKeySpec"},"type":"array","maxItems":100},{"type":"null"}],"title":"Accepted Context"},"crisis_call_911_reply":{"anyOf":[{"$ref":"#/components/schemas/CrisisCall911Reply"},{"type":"null"}],"description":"Reply for an already-in-crisis caller asking us to call 911. Omit to keep; null clears it."},"contact_lines":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactLineInput"},"type":"array","maxItems":50},{"type":"null"}],"title":"Contact Lines","description":"Replace declared contact lines. Omit to keep them; an empty list clears them."},"medical_emergency_ending":{"anyOf":[{"type":"string","enum":["stay_on_line","end_after_script"]},{"type":"null"}],"title":"Medical Emergency Ending","description":"How a voice call ends after a medical emergency's script: ``stay_on_line`` (the default) or\n``end_after_script``, which plays the authored closing line and then ends the call. A self-harm or\ncrisis statement keeps the call open in either."},"output_checks":{"anyOf":[{"$ref":"#/components/schemas/ServiceOutputChecksRequest"},{"type":"null"}],"title":"Output Checks","description":"Which reply checks run. The block replaces what is stored: a key it names overrides the workspace default and a\nkey it leaves out inherits it. `null` clears the block, so every key inherits. Leaving it out keeps what's stored.\nTakes effect for a call set up after the update."},"emergency_floor":{"anyOf":[{"$ref":"#/components/schemas/ServiceEmergencyFloorRequest"},{"type":"null"}],"title":"Emergency Floor","description":"How the floor acts on the service's text conversations, voice notes and simulations. The block replaces what is\nstored, as `output_checks` does: `null` clears it and leaving it out keeps it. Takes effect for the next message."},"conversation_audit":{"anyOf":[{"$ref":"#/components/schemas/ConversationAuditSettings"},{"type":"null"}],"description":"Replace the audit settings. Omit to keep them; send `enabled: false` to turn the audit off."},"declared_languages":{"anyOf":[{"items":{"type":"string","enum":["en","es","ar","fr","de","pt","zh","ja","ko"]},"type":"array","maxItems":9,"minItems":1},{"type":"null"}],"title":"Declared Languages","description":"Replace the languages this service serves. `null` clears them, and leaving it out keeps them."}},"type":"object","title":"UpdateServiceRequest"},"NameString":{"maxLength":256,"minLength":1,"type":"string"},"DescriptionString":{"type":"string","maxLength":2000},"VersionSet-Input":{"properties":{"agent_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version Number"},"context_graph_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Graph Version Number"},"llm_model_preferences":{"additionalProperties":{"$ref":"#/components/schemas/LLMConfig"},"type":"object","title":"Llm Model Preferences"},"dynamic_behavior_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetBehaviorPin"},"type":"array","maxItems":254},{"type":"null"}],"title":"Dynamic Behavior Sets"}},"type":"object","title":"VersionSet","description":"Pins agent, state machine, LLM model and dynamic behavior versions for a service."},"LLMConfig":{"properties":{"llm_name":{"type":"string","title":"Llm Name"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"experience_controls":{"anyOf":[{"$ref":"#/components/schemas/LLMExperienceControls"},{"type":"null"}]}},"type":"object","required":["llm_name"],"title":"LLMConfig"},"LLMExperienceControls":{"properties":{"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"temperature":{"anyOf":[{"type":"number","maximum":2,"minimum":0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Top P"}},"additionalProperties":false,"type":"object","title":"LLMExperienceControls","description":"Typed model-tuning controls for a version set's LLM preference.\n\n``params`` stays available as a provider-specific escape hatch. These three fields are the ones deployments\nuse. Token budgets are left out on purpose, so a version set cannot cut a response short by accident."},"VersionSetBehaviorPin":{"properties":{"set_id":{"type":"string","format":"uuid","title":"Set Id","description":"The library set. It belongs to the service's workspace and isn't archived."},"version":{"type":"integer","maximum":2147483647,"minimum":1,"title":"Version","description":"The version of the set the service runs. A later version of the set changes nothing until the pin moves."},"enabled":{"type":"boolean","title":"Enabled","description":"A disabled pin stays on the version set and is never offered.","default":true},"states":{"items":{"$ref":"#/components/schemas/NameString"},"type":"array","maxItems":200,"title":"States","description":"The action and data collection states it applies in. Empty: every one."}},"additionalProperties":false,"type":"object","required":["set_id","version"],"title":"VersionSetBehaviorPin","description":"One library set a version set uses, at one version."},"ServiceTag":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["key"],"title":"ServiceTag"},"ServiceVoiceConfig-Input":{"properties":{"silence_policy":{"$ref":"#/components/schemas/SilencePolicy"},"max_buffer_delay_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Buffer Delay Ms"},"eager_eot_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eager Eot Threshold"},"eot_timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eot Timeout Ms"},"filler_style":{"type":"string","enum":["backchannel","phrase","silent"],"title":"Filler Style","default":"backchannel"},"filler_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filler Vocabulary"},"backchannel_delay_ms":{"type":"integer","title":"Backchannel Delay Ms","default":400},"max_response_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Sentences"},"max_response_words":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Response Words"},"barge_in_min_speech_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Min Speech S"},"barge_in_cooldown_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Barge In Cooldown S"},"held_turn_policy":{"type":"string","enum":["always","judged","never"],"title":"Held Turn Policy","description":"What a realtime voice call does with a caller turn committed while the agent's own opening, the notice and the greeting, is still playing. always: the turn is answered once the opening ends. judged: the turn is answered only when it asks for something the opening did not cover, so a greeting, an acknowledgement or an echo of the opening is left unanswered, and a turn that cannot be judged is answered. never: the turn is not answered, and the caller's next turn is answered as usual. Every turn is still recorded and checked for a medical emergency, whatever the setting. It applies to a call the agent opens itself; a call that waits for the caller to speak first answers the first turn.","default":"always"},"min_tts_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Tts Speed"},"post_eot_pause_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Eot Pause Ms"},"transition_deadline_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transition Deadline Ms"},"progress_interval_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Interval Ms"},"empathy_hold_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Empathy Hold Ms"},"filler_cooldown_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filler Cooldown Ms"},"progress_vocabulary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Progress Vocabulary"},"tts_provider":{"anyOf":[{"type":"string","enum":["cartesia","elevenlabs"]},{"type":"null"}],"title":"Tts Provider"},"tts_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tts Config"},"language_providers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LanguageProviderEntry"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Language Providers"},"session_provider":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Session Provider"},"realtime_voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"type":"null"}],"title":"Realtime Voice","description":"Deprecated built-in OpenAI Realtime voice shortcut. Use realtime.voice instead; the two fields are mutually exclusive.","deprecated":true},"realtime":{"anyOf":[{"$ref":"#/components/schemas/RealtimeSessionConfig"},{"type":"null"}]},"eleven_realtime":{"anyOf":[{"$ref":"#/components/schemas/ElevenRealtimeSessionConfig"},{"type":"null"}]},"grok_voice":{"anyOf":[{"$ref":"#/components/schemas/GrokVoiceSessionConfig"},{"type":"null"}]},"gpt_live":{"anyOf":[{"$ref":"#/components/schemas/GptLiveSessionConfig"},{"type":"null"}]},"phonic":{"anyOf":[{"$ref":"#/components/schemas/PhonicSessionConfig"},{"type":"null"}]},"readiness_requires":{"anyOf":[{"items":{"type":"string","enum":["openai_realtime","decisions","warehouse"]},"type":"array","maxItems":10},{"type":"null"}],"title":"Readiness Requires"},"max_concurrent_calls":{"type":"integer","maximum":100,"minimum":1,"title":"Max Concurrent Calls","default":60},"max_calls_per_caller":{"type":"integer","maximum":100,"minimum":1,"title":"Max Calls Per Caller","default":2},"answer_hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"forwarding":{"anyOf":[{"$ref":"#/components/schemas/ServiceForwardingConfig-Input"},{"type":"null"}]}},"type":"object","title":"ServiceVoiceConfig","description":"Per-service voice pipeline tuning. Overrides workspace/env defaults.\n\nEach field is optional — None means inherit from the layer above\n(workspace VoiceSettings → env vars → hardcoded defaults).\n\nA field is read only by the families whose ``reads`` list it (``platform_lib.config.voice_families.specs``); a save\naccepts the others and reports them as ignored."},"SilencePolicy":{"properties":{"max_closing_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Closing Attempts","default":2},"max_cap_warning_attempts":{"type":"integer","maximum":5,"minimum":1,"title":"Max Cap Warning Attempts","default":2},"cap_warning_retry_seconds":{"type":"number","maximum":60,"minimum":1,"title":"Cap Warning Retry Seconds","default":10}},"additionalProperties":false,"type":"object","title":"SilencePolicy","description":"Per-service delivery retries around the signed silence cadence."},"LanguageProviderEntry":{"properties":{"provider":{"type":"string","enum":["cartesia","elevenlabs"],"title":"Provider"},"config":{"additionalProperties":true,"type":"object","maxProperties":20,"title":"Config"}},"type":"object","required":["provider"],"title":"LanguageProviderEntry","description":"Per-language TTS provider configuration."},"RealtimeSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","enum":["gpt-realtime-2.1","gpt-realtime-2.1-mini"]},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},{"$ref":"#/components/schemas/RealtimeCustomVoice"},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.25},{"type":"null"}],"title":"Speed"},"noise_reduction":{"anyOf":[{"type":"string","enum":["near_field","far_field","off"]},{"type":"null"}],"title":"Noise Reduction","description":"Input noise reduction. Omit or set null to use the Platform default; set 'off' to disable it."},"noise_reduction_strength":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Noise Reduction Strength","description":"OpenAI audio.input.noise_reduction.strength. Higher values suppress more noise.","docs_url":"https://developers.openai.com/api/reference/resources/realtime/client-events"},"transcription":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTranscriptionConfig"},{"type":"null"}]},"turn_detection":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/RealtimeServerVadConfig"},{"$ref":"#/components/schemas/RealtimeSemanticVadConfig"}],"discriminator":{"propertyName":"type","mapping":{"semantic_vad":"#/components/schemas/RealtimeSemanticVadConfig","server_vad":"#/components/schemas/RealtimeServerVadConfig"}}},{"type":"null"}],"title":"Turn Detection"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"max_output_tokens":{"anyOf":[{"type":"integer","maximum":4096,"minimum":1},{"type":"string","const":"inf"},{"type":"null"}],"title":"Max Output Tokens"},"truncation":{"anyOf":[{"$ref":"#/components/schemas/RealtimeTruncationConfig"},{"type":"null"}]},"required_tool_on_first_caller_turn":{"anyOf":[{"type":"string","maxLength":256,"minLength":1,"pattern":"^[A-Za-z_][A-Za-z0-9_.:-]*$"},{"type":"null"}],"title":"Required Tool On First Caller Turn","description":"Force one named function on the first caller-generated response, excluding the inbound greeting, then restore automatic tool choice. Runtime accepts this only for source_override='test' sessions and tools that the executor verifies are read-only or side-effect-free."}},"additionalProperties":false,"type":"object","title":"RealtimeSessionConfig","description":"Typed OpenAI Realtime session controls for a service."},"RealtimeCustomVoice":{"properties":{"id":{"type":"string","maxLength":256,"minLength":1,"pattern":"^voice_[A-Za-z0-9_-]+$","title":"Id"}},"additionalProperties":false,"type":"object","required":["id"],"title":"RealtimeCustomVoice","description":"Approved OpenAI custom voice reference."},"RealtimeTranscriptionConfig":{"properties":{"model":{"type":"string","const":"gpt-transcribe","title":"Model","default":"gpt-transcribe"},"language":{"anyOf":[{"type":"string","enum":["af","ar","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","es","et","fa","fi","fr","gl","gu","he","hi","hr","hu","hy","id","is","it","iw","ja","ka","kk","kn","ko","lt","lv","mi","mk","ml","mr","ms","nb","ne","nl","no","pl","pt","ro","ru","sk","sl","sr","sv","sw","ta","te","th","tl","tr","uk","ur","vi","zh","afr","amh","ara","aze","bel","ben","bos","bul","cat","ces","cmn","cym","dan","deu","ell","eng","est","fas","fil","fin","fra","gle","glg","guj","heb","hin","hrv","hun","hye","ind","isl","ita","jpn","kan","kat","kaz","kor","lav","lit","mal","mar","mkd","mon","mri","msa","mya","nep","nld","nor","pol","por","ron","rus","slk","slv","som","spa","srp","swa","swe","tam","tel","tgl","tha","tur","ukr","urd","vie","yue","zh-cn","zh-hk","zh-tw"]},{"type":"null"}],"title":"Language"},"prompt":{"anyOf":[{"type":"string","maxLength":1024,"minLength":1},{"type":"null"}],"title":"Prompt"},"keywords":{"anyOf":[{"items":{"type":"string","maxLength":256,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keywords","description":"Literal transcription hints. Unset, use the service keyterms.","docs_url":"https://developers.openai.com/api/docs/guides/transcription"}},"additionalProperties":false,"type":"object","title":"RealtimeTranscriptionConfig","description":"Asynchronous caller-audio transcription used for transcripts and observability."},"RealtimeServerVadConfig":{"properties":{"type":{"type":"string","const":"server_vad","title":"Type","default":"server_vad"},"threshold":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Threshold"},"prefix_padding_ms":{"anyOf":[{"type":"integer","maximum":5000,"minimum":0},{"type":"null"}],"title":"Prefix Padding Ms"},"silence_duration_ms":{"anyOf":[{"type":"integer","maximum":3000,"minimum":200},{"type":"null"}],"title":"Silence Duration Ms"}},"additionalProperties":false,"type":"object","title":"RealtimeServerVadConfig","description":"Volume-based turn detection controls."},"RealtimeSemanticVadConfig":{"properties":{"type":{"type":"string","const":"semantic_vad","title":"Type","default":"semantic_vad"},"eagerness":{"type":"string","enum":["auto","low","medium","high"],"title":"Eagerness","default":"auto"}},"additionalProperties":false,"type":"object","title":"RealtimeSemanticVadConfig","description":"Semantic turn detection controls."},"RealtimeTruncationConfig":{"properties":{"type":{"type":"string","enum":["auto","disabled","retention_ratio"],"title":"Type","description":"Use auto or retention_ratio. Legacy disabled values are readable but refused by voice sessions.","default":"auto","docs_url":"https://developers.openai.com/api/docs/guides/voice-latency-cost?api=realtime#truncation"},"retention_ratio":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Retention Ratio"},"post_instructions_tokens":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Post Instructions Tokens"}},"additionalProperties":false,"type":"object","title":"RealtimeTruncationConfig","description":"Conversation context truncation strategy."},"ElevenRealtimeSessionConfig":{"properties":{"voice":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Voice"},"model":{"anyOf":[{"type":"string","const":"eleven_realtime_v1_mini"},{"type":"null"}],"title":"Model"}},"additionalProperties":false,"type":"object","required":["voice"],"title":"ElevenRealtimeSessionConfig","description":"Eleven Realtime controls for a service: the ElevenLabs voice it speaks in, and the model."},"GrokVoiceSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"grok-voice-3.0"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["altair","ara","atlas","aurora","carina","castor","celeste","cosmo","eve","helios","helix","iris","kepler","leo","liora","lumen","luna","lux","naksh","orion","perseus","rex","rigel","sal","sirius","ursa","zagan","zenith"]},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.7},{"type":"null"}],"title":"Speed"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","high"]},{"type":"null"}],"title":"Reasoning Effort"},"keyterms":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keyterms","description":"Transcription hints. Unset, use the service keyterms. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"},"language_hint":{"anyOf":[{"type":"string","enum":["en","ar-EG","ar-SA","ar-AE","bn","zh","fr","de","hi","id","it","ja","ko","pt-BR","pt-PT","ru","es-MX","es-ES","tr","vi"]},{"type":"null"}],"title":"Language Hint"},"replace":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":100,"minLength":1},"propertyNames":{"maxLength":100,"minLength":1},"type":"object","maxProperties":100,"minProperties":1},{"type":"null"}],"title":"Replace","description":"Pronunciation replacements: a phrase the agent says mapped to how xAI speaks it. Matched case-insensitively on whole words, longest key first. Keys and values are stripped, and keys that differ only by case are refused. xAI changes the audio and not its transcript; the runtime applies the same map to the transcript before the output checks read it, so they judge what the caller hears. https://docs.x.ai/developers/model-capabilities/audio/speech-to-speech"}},"additionalProperties":false,"type":"object","title":"GrokVoiceSessionConfig","description":"Grok Voice controls for a service. Every field is optional: the provider supplies the defaults."},"GptLiveSessionConfig":{"properties":{"model":{"type":"string","enum":["gpt-live-1","gpt-live-1.1-leopard-2-alpha"],"title":"Model","default":"gpt-live-1"},"voice":{"type":"string","enum":["alloy","ash","ballad","beacon","bossa","brise","cedar","cinder","coral","delta","echo","flitz","gleam","harema","juni","marin","meridian","nira","noeul","nuri","quartz","ripple","sage","shida","shimmer","sillage","stone","tempo","verse","vesper","willow"],"title":"Voice","default":"marin"}},"additionalProperties":false,"type":"object","title":"GptLiveSessionConfig","description":"Live startup settings. Language comes from the agent's instructions, not a protocol field."},"PhonicSessionConfig":{"properties":{"model":{"anyOf":[{"type":"string","const":"phonic-1"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","enum":["sabrina","grant","sandeep","landon","shelby","mason","virginia","eleanor","gabrielle","paula","nolan","roberto","hikari","tomoya","eloise","jerome","daniela","juliana","valeria","eduardo","henri","kourtney","kaspar","mei","stella","karoline","amelia","william","joon","hana","mia","derek","divya","alice","karin","phillip","jackson","gina","michelle"]},{"type":"null"}],"title":"Voice"},"intelligence_level":{"anyOf":[{"type":"string","enum":["standard","high"]},{"type":"null"}],"title":"Intelligence Level"},"audio_speed":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.5},{"type":"null"}],"title":"Audio Speed"},"vad":{"anyOf":[{"$ref":"#/components/schemas/PhonicVadConfig"},{"type":"null"}]},"boosted_keywords":{"anyOf":[{"items":{"type":"string","maxLength":50,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Boosted Keywords","description":"Recognition hints. Unset, use the service keyterms."},"pronunciation_dictionary":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhonicPronunciation"},"type":"array","maxItems":100},{"type":"null"}],"title":"Pronunciation Dictionary"},"multilingual_mode":{"anyOf":[{"type":"string","enum":["auto","request","initial"]},{"type":"null"}],"title":"Multilingual Mode"}},"additionalProperties":false,"type":"object","title":"PhonicSessionConfig","description":"Phonic controls for a service."},"PhonicVadConfig":{"properties":{"threshold":{"anyOf":[{"type":"number","maximum":0.8,"minimum":0.2},{"type":"null"}],"title":"Threshold"},"prebuffer_duration_ms":{"anyOf":[{"type":"integer","maximum":2000,"minimum":0},{"type":"null"}],"title":"Prebuffer Duration Ms"},"min_speech_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Speech Duration Ms"},"min_silence_duration_ms":{"anyOf":[{"type":"integer","maximum":1500,"minimum":0},{"type":"null"}],"title":"Min Silence Duration Ms"},"min_words_to_interrupt":{"anyOf":[{"type":"integer","maximum":10,"minimum":1},{"type":"null"}],"title":"Min Words To Interrupt"}},"additionalProperties":false,"type":"object","title":"PhonicVadConfig","description":"Phonic's server VAD. Unset fields keep Phonic's defaults."},"PhonicPronunciation":{"properties":{"word":{"type":"string","maxLength":30,"minLength":1,"title":"Word"},"pronunciation":{"type":"string","maxLength":50,"minLength":1,"title":"Pronunciation"}},"additionalProperties":false,"type":"object","required":["word","pronunciation"],"title":"PhonicPronunciation"},"StaffedHours":{"properties":{"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone"},"windows":{"items":{"$ref":"#/components/schemas/StaffedWindow"},"type":"array","maxItems":50,"minItems":1,"title":"Windows"},"closed_on_us_federal_holidays":{"type":"boolean","title":"Closed On Us Federal Holidays","default":false},"closed_dates":{"items":{"type":"string","maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"type":"array","maxItems":100,"title":"Closed Dates"}},"type":"object","required":["timezone","windows"],"title":"StaffedHours","description":"When the people who answer a service's lines are there.\n\nA weekday with no window is closed all day. A closed date, and a federal holiday when the service closes for\nthem, close the whole day whatever the windows say. Everything else is open exactly where a window covers the\nwall-clock time of the zone."},"StaffedWindow":{"properties":{"day":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"title":"Day"},"open":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Open"},"close":{"type":"string","maxLength":5,"minLength":5,"pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$","title":"Close"}},"type":"object","required":["day","open","close"],"title":"StaffedWindow","description":"One stretch of one weekday that people answer: from ``open`` up to, not including, ``close``."},"ServiceForwardingConfig-Input":{"properties":{"forward_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"warm_transfer_answer_timeout_s":{"type":"integer","maximum":55,"minimum":10,"title":"Warm Transfer Answer Timeout S","default":30},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue","default":"hand_over"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss","default":"hand_back"},"receiver_classifier":{"type":"string","enum":["twilio_amd","platform"],"title":"Receiver Classifier","default":"twilio_amd"},"approved_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Approved Destinations"},"fallback_to":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"test_destinations":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":20,"title":"Test Destinations"},"verification_callers":{"additionalProperties":{"$ref":"#/components/schemas/NameString"},"propertyNames":{"$ref":"#/components/schemas/PhoneE164"},"type":"object","maxProperties":10,"title":"Verification Callers"},"hours":{"anyOf":[{"$ref":"#/components/schemas/StaffedHours"},{"type":"null"}]},"after_hours_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"default_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]},"transfer_reasons":{"items":{"$ref":"#/components/schemas/TransferReason"},"type":"array","maxItems":20,"title":"Transfer Reasons"},"destination_hours":{"additionalProperties":{"$ref":"#/components/schemas/DestinationHours"},"propertyNames":{"$ref":"#/components/schemas/DialE164"},"type":"object","maxProperties":50,"title":"Destination Hours"},"unsupported_language_destination":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"type":"object","required":["forward_to"],"title":"ServiceForwardingConfig","description":"Per-service call-forwarding destination + transfer mechanism.\n\nThis block gates the ``forward_call`` tool: None means the agent cannot\ntransfer at all. When present, ``forward_to`` picks the destination mode,\nand the tool schema follows it — a static service gets an argument-less\ntool, a dynamic one gets a required ``phone_number`` that must be one of\n``approved_destinations`` (none approved means no tool). Nothing cascades:\na service is one mode or the other. ``fallback_to`` is no mode: it is the\nline the safe exit dials, in either, and ``forward_call`` never offers it.\nA call tagged as a test reaches only ``test_destinations``, in either mode, unless\nits caller is one of ``verification_callers``.\n``hours`` is none either: on a dynamic service, a transfer outside its staffed\nhours dials ``after_hours_destination`` whichever approved line was asked for, unless that line keeps\nhours of its own in ``destination_hours``.\nA dynamic service can also name a ``default_destination``, the line a transfer that names none dials. A service\nin either mode can list the ``transfer_reasons`` each of its transfers names and the call records."},"DialE164":{"type":"string","maxLength":16,"minLength":2},"PhoneE164":{"type":"string","maxLength":16,"minLength":2},"TransferReason":{"properties":{"key":{"$ref":"#/components/schemas/TransferReasonKey"},"description":{"$ref":"#/components/schemas/DescriptionString","maxLength":200}},"additionalProperties":false,"type":"object","required":["key","description"],"title":"TransferReason","description":"One reason a service's transfers name (``ServiceForwardingConfig.transfer_reasons``)."},"TransferReasonKey":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9_-]*[a-z0-9]$"},"DestinationHours":{"properties":{"hours":{"$ref":"#/components/schemas/StaffedHours"},"after_hours":{"anyOf":[{"$ref":"#/components/schemas/DialE164"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["hours"],"title":"DestinationHours","description":"One approved line's own staffed hours and after-hours line, in place of its service's\n(``ServiceForwardingConfig.destination_hours``)."},"ContextKeySpec":{"properties":{"key":{"$ref":"#/components/schemas/SlugString"},"type":{"type":"string","enum":["string","number"],"title":"Type"},"description":{"$ref":"#/components/schemas/DescriptionString"},"required":{"type":"boolean","title":"Required"}},"type":"object","required":["key","type","description","required"],"title":"ContextKeySpec","description":"One key a conversation may supply as start-time context for a service.\n\nThe value is validated against ``type`` at conversation start; a tool can then\nbind the key to one of its parameters (injected, hidden from the model)."},"SlugString":{"type":"string","maxLength":63,"minLength":2,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$"},"CrisisCall911Reply":{"properties":{"en":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1},"es":{"$ref":"#/components/schemas/DescriptionString","maxLength":1000,"minLength":1}},"additionalProperties":false,"type":"object","required":["en","es"],"title":"CrisisCall911Reply","description":"Per-service wording added when a caller already in crisis asks for emergency dispatch."},"ContactLineInput":{"properties":{"kind":{"type":"string","enum":["crisis","domestic_violence","child_abuse","poison_help","clinical_24h","front_desk"],"title":"Kind"},"number":{"$ref":"#/components/schemas/DialE164"},"spoken_name":{"$ref":"#/components/schemas/NameString","maxLength":80},"spoken_name_es":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"area":{"anyOf":[{"$ref":"#/components/schemas/NameString","maxLength":80},{"type":"null"}]},"available_24h":{"type":"boolean","title":"Available 24H"},"may_read_aloud":{"type":"boolean","title":"May Read Aloud"}},"additionalProperties":false,"type":"object","required":["kind","number","spoken_name","available_24h","may_read_aloud"],"title":"ContactLineInput","description":"Save-time number policy; persisted declarations remain readable after policy changes."},"ServiceOutputChecksRequest":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/PhiUnverifiedCheck","description":"On a voice call, `cut` stops a reply that reads something from a patient's record to a caller who has not\nverified, and the caller hears a correction in its place. `off`, the platform default, does not run the check."},"blocklisted_number":{"$ref":"#/components/schemas/BlocklistedNumberCheck","description":"`cut`, the platform default, stops a reply that speaks a number on the platform phone blocklist, and the caller\nhears the no-confirmed-number correction in its place. `off` lets the reply speak it. A listed number is still\nnever dialed and is still refused as a destination."},"misspelled_word":{"$ref":"#/components/schemas/MisspelledWordCheck","description":"`cut`, the platform default, stops a reply that spells back, letter by letter, a word close to but not the one\nthe caller just said. `off` lets the spelling play."},"dosing_or_med_change":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that gives dosing advice or tells the caller to change a medication. `cut` (the platform default)\nreplaces it with a correction, `count` lets it play and counts it, `off` lets it play."},"diagnosis":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says what is wrong with the caller, or that a symptom needs no care. `cut`, `count` or `off`."},"false_confirmation":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says a booking, message or other action is done when no write on the call backs it. `cut`,\n`count` or `off`."},"dispatch_promise":{"$ref":"#/components/schemas/CheckerLabelCheck","description":"A reply that says emergency help is called, sent or on the way. `cut`, `count` or `off`."},"action_promise":{"$ref":"#/components/schemas/ActionPromiseCheck","description":"A reply that called no tool and tells the caller the agent is doing something now, on text or a realtime call.\n`retry`, the platform default, gives the agent one more go with a note to act or say what it can't do. `off`\nsends the reply as written."},"unbacked_action_claims":{"$ref":"#/components/schemas/UnbackedActionClaimsCheck","description":"Text only. A reply that says something was done for the client, such as an escalation, a handoff or a message\npassed to a team, when no tool that succeeded in the turn did it. `off`, the platform default, does not read the\nreply. `log` reads it and counts a claim it finds; the reply goes out as written. `enforce` holds the reply back\nand gives the agent one more go with a note to call the tool first or not claim it; a second reply that still\nclaims it goes out cut before the claim, with the false-confirmation correction in its place."}},"additionalProperties":false,"type":"object","title":"ServiceOutputChecksRequest","description":"The reply checks a service or a workspace sets. A key left out inherits: a service's from the workspace default,\nthe workspace's from the platform default. Every key can be set to `off`."},"PhiUnverifiedCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"PhiUnverifiedCheck"},"BlocklistedNumberCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"BlocklistedNumberCheck"},"MisspelledWordCheck":{"properties":{"mode":{"type":"string","enum":["cut","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"MisspelledWordCheck"},"CheckerLabelCheck":{"properties":{"mode":{"type":"string","enum":["cut","count","off"],"title":"Mode","default":"cut"}},"additionalProperties":false,"type":"object","title":"CheckerLabelCheck"},"ActionPromiseCheck":{"properties":{"mode":{"type":"string","enum":["retry","off"],"title":"Mode","default":"retry"}},"additionalProperties":false,"type":"object","title":"ActionPromiseCheck"},"UnbackedActionClaimsCheck":{"properties":{"mode":{"type":"string","enum":["off","log","enforce"],"title":"Mode","default":"off"}},"additionalProperties":false,"type":"object","title":"UnbackedActionClaimsCheck"},"ServiceEmergencyFloorRequest":{"properties":{"text_self_harm":{"$ref":"#/components/schemas/TextSelfHarmFloor","description":"A message that says the person is thinking about harming or killing themselves. `enforce`, the platform default,\nanswers it with the floor's crisis script (the region's crisis line, the service's crisis contacts and the\nemergency number) in place of the agent's reply. `off` leaves it to the agent."},"text_medical":{"$ref":"#/components/schemas/TextMedicalFloor","description":"A message that describes a medical emergency, such as chest pain or trouble breathing. `shadow`, the platform\ndefault, detects and counts it and opens the floor's hold, and the agent's reply goes out. `enforce` answers it\nwith the floor's emergency-number script instead. `off` leaves it to the agent."},"held_text":{"$ref":"#/components/schemas/HeldTextFloor","description":"A message on a conversation an operator holds. `enforce`, the platform default, answers it with the floor's\nscript when it names any emergency. `off` leaves every held message to the operator."}},"additionalProperties":false,"type":"object","title":"ServiceEmergencyFloorRequest","description":"How the medical-emergency and crisis floor acts on text conversations (SMS, email, web chat and the other\nmessaging channels), voice notes and simulations. A key left out inherits: a service's from the workspace default,\nthe workspace's from the platform default, which is today's behavior. Every key can be set to `off`, and then the\nfloor neither replaces nor alters the reply: the agent's own reply and tools run, no hold opens, and the hit is\nonly counted. A voice call's floor is not set here."},"TextSelfHarmFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"TextSelfHarmFloor"},"TextMedicalFloor":{"properties":{"mode":{"type":"string","enum":["enforce","shadow","off"],"title":"Mode","default":"shadow"}},"additionalProperties":false,"type":"object","title":"TextMedicalFloor"},"HeldTextFloor":{"properties":{"mode":{"type":"string","enum":["enforce","off"],"title":"Mode","default":"enforce"}},"additionalProperties":false,"type":"object","title":"HeldTextFloor"},"ConversationAuditSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"checks":{"items":{"$ref":"#/components/schemas/ConversationAuditCheck"},"type":"array","maxItems":4,"minItems":1,"title":"Checks"},"threshold":{"type":"integer","maximum":100,"minimum":1,"title":"Threshold","default":80}},"additionalProperties":false,"type":"object","title":"ConversationAuditSettings"},"ConversationAuditCheck":{"type":"string","enum":["obvious_errors","missed_escalation","wrong_information","missed_safety_event"]},"ServicePlanResponse":{"properties":{"problems":{"items":{"$ref":"#/components/schemas/SaveProblem"},"type":"array","title":"Problems","description":"Each refusal the save would answer with, in the order it meets them. Empty when every check passes."},"changes":{"anyOf":[{"items":{"$ref":"#/components/schemas/FieldChange"},"type":"array"},{"type":"null"}],"title":"Changes","description":"What the save would change in the stored service, by field. A create's lists every field it would store, and\na save that changes nothing has none. Null when the request does not apply to the stored config, so there is no\nconfig to compare (`readiness_unavailable` is `config_unreadable`)."},"families":{"anyOf":[{"items":{"$ref":"#/components/schemas/FamilyDelivery"},"type":"array"},{"type":"null"}],"title":"Families","description":"Each version set's family, `release` first. Empty for a text service, and null when it can't be read (see\n`readiness_unavailable`)."},"starts":{"anyOf":[{"items":{"$ref":"#/components/schemas/VersionSetStarts"},"type":"array"},{"type":"null"}],"title":"Starts","description":"The starts each version set takes, as `readiness.starts` lists them. Null exactly when `families` is null."},"readiness":{"anyOf":[{"$ref":"#/components/schemas/ServiceReadinessResponse"},{"type":"null"}],"description":"The service's readiness readback (`GET .../readiness`) for the config the save would store. A create's has no\nvoice use case bound. Null when it can't be read (see `readiness_unavailable`)."},"readiness_unavailable":{"anyOf":[{"$ref":"#/components/schemas/Unavailable"},{"type":"null"}],"description":"Why `readiness` is null, and `families` too unless it is `channel_manager_unavailable`: the agent is not in the\nworkspace, a version set pins an agent or context graph version that doesn't exist or that no check cleared, the request does not apply to\nthe stored config, the config the save would store is incompatible with readiness, or channel-manager can't be\nread. Null when it is read."}},"type":"object","required":["problems","changes","families","starts","readiness","readiness_unavailable"],"title":"ServicePlanResponse","description":"What a service save would refuse, change and run. Nothing is written."},"SaveProblem":{"properties":{"status":{"type":"integer","title":"Status","description":"The HTTP status the save would answer with."},"code":{"type":"string","title":"Code","description":"What is refused, as a stable code: the refusal's own `code`, `error` or `error_code` when it carries one, else\nthe code of the check that refuses."},"message":{"type":"string","title":"Message","description":"What is refused, as the refusal says it."},"where":{"items":{"type":"string"},"type":"array","title":"Where","description":"The fields of the service the refusal is about, as dotted paths. Empty when it is about the save as a whole,\nsuch as who makes it."},"detail":{"$ref":"#/components/schemas/JsonValue","description":"The `detail` the save would answer with, exactly."}},"type":"object","required":["status","code","message","where","detail"],"title":"SaveProblem","description":"One refusal the save would answer with."},"JsonValue":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"},{"items":{"$ref":"#/components/schemas/JsonValue"},"type":"array"},{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},{"type":"null"}]},"FieldChange":{"properties":{"path":{"items":{"type":"string"},"type":"array","title":"Path","description":"Where the field is: `name`, or a key of the service's config, then each key under it."},"change":{"type":"string","enum":["added","removed","changed"],"title":"Change"},"before":{"$ref":"#/components/schemas/JsonValue","description":"What is stored. Null for an added field."},"after":{"$ref":"#/components/schemas/JsonValue","description":"What the save would store. Null for a removed field."}},"type":"object","required":["path","change"],"title":"FieldChange","description":"A field the save would change."},"FamilyDelivery":{"properties":{"version_set":{"$ref":"#/components/schemas/ReadinessLabel"},"family":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Family"},"source":{"type":"string","enum":["service","agent","engine_default","agent_missing"],"title":"Source"},"capabilities":{"anyOf":[{"$ref":"#/components/schemas/SessionCapabilities"},{"type":"null"}]},"dynamic_behaviors_configured":{"type":"boolean","title":"Dynamic Behaviors Configured"},"ignored_settings":{"items":{"type":"string"},"type":"array","title":"Ignored Settings","description":"The service settings, as dotted paths from the service (keyterms, voice_config.max_buffer_delay_ms), that the service sets to a non-default value and this family does not read. Advisory: the config is valid and saves, and a setting listed here may still be refused (see family_refusals). Empty, and not known, when ignored_settings_known is false."},"ignored_settings_known":{"type":"boolean","title":"Ignored Settings Known","description":"Whether ignored_settings was read: false when the version set's family is unknown or the stored service no longer validates, so an empty list says nothing."},"family_judgement":{"type":"string","enum":["judged","not_judged"],"title":"Family Judgement","description":"judged: family_refusals is every refusal the voice family contract and the family's delivery rules find for this version set, empty when the family runs it as authored. not_judged: the version set could not be judged (family_not_judged says why), so family_refusals may be incomplete and an empty one is never a pass."},"family_refusals":{"items":{"$ref":"#/components/schemas/FamilyRefusal"},"type":"array","title":"Family Refusals","description":"Each reason the family cannot run this version set as stored, with the code, message and fields a save refuses it with: the family's admission for the workspace when the service names the family, its delivery rules held to the whole config, then the contract's rules on the program the set's agent version runs. A client shows each one's code, message and fields and computes none. Messages have every digit redacted; a save plan's problems keep the exact text."},"family_not_judged":{"anyOf":[{"$ref":"#/components/schemas/FamilyNotJudged"},{"type":"null"}],"description":"Why the version set was not judged, when family_judgement is not_judged; null otherwise."},"refusals":{"items":{"$ref":"#/components/schemas/FamilyPolicyRefusal"},"type":"array","title":"Refusals","description":"What the config the save would store asks of the family that it can't deliver (warm transfer,\nservice-written lines), whether or not this save moves the version set. Empty when it delivers it all. Kept as\nit was for a family off the voice family contract; for a family on it, `family_refusals` is the list a client\nshows, which holds these findings with the contract's."}},"type":"object","required":["version_set","family","source","capabilities","dynamic_behaviors_configured","ignored_settings","ignored_settings_known","family_judgement","family_refusals","family_not_judged","refusals"],"title":"FamilyDelivery","description":"The voice family one version set would run, as readiness reads it, and the family's delivery rules held to\nthe whole config."},"ReadinessLabel":{"type":"string"},"SessionCapabilities":{"properties":{"multi_state":{"type":"boolean","title":"Multi State"},"dynamic_behaviors":{"type":"boolean","title":"Dynamic Behaviors"},"completion_navigation":{"type":"boolean","title":"Completion Navigation"},"channels":{"items":{"type":"string","enum":["app","phone","playground","test_call"]},"type":"array","title":"Channels"},"outbound_calls":{"type":"boolean","title":"Outbound Calls"},"operator_takeover":{"type":"boolean","title":"Operator Takeover"},"end_call":{"type":"boolean","title":"End Call"},"warm_transfer":{"type":"boolean","title":"Warm Transfer","default":false},"authored_lines":{"type":"string","enum":["tts","model_checked","clips"],"title":"Authored Lines","default":"clips"},"floor_enforced":{"type":"boolean","title":"Floor Enforced","default":false},"state_carrier":{"anyOf":[{"type":"string","enum":["session_update_and_note","note_only"]},{"type":"null"}],"title":"State Carrier"},"typed_guardrails":{"type":"boolean","title":"Typed Guardrails","default":false}},"type":"object","required":["multi_state","dynamic_behaviors","completion_navigation","channels","outbound_calls","operator_takeover","end_call","warm_transfer","authored_lines","floor_enforced","state_carrier","typed_guardrails"],"title":"SessionCapabilities"},"FamilyRefusal":{"properties":{"code":{"anyOf":[{"$ref":"#/components/schemas/FamilyRefusalCode"},{"type":"string","enum":["family_warm_transfer_unsupported","family_cannot_speak_service_lines"]}],"title":"Code"},"message":{"$ref":"#/components/schemas/ReadinessLabel","description":"Names the family and the fix, with every digit redacted."},"fields":{"items":{"$ref":"#/components/schemas/ReadinessLabel"},"type":"array","title":"Fields","description":"What the author changes, as dotted paths."}},"type":"object","required":["code","message","fields"],"title":"FamilyRefusal"},"FamilyRefusalCode":{"type":"string","enum":["voice_family_not_served","voice_family_residency","voice_family_agent_version","voice_family_direct_program","voice_family_graph_shape","voice_family_guardrails","voice_family_dynamic_behaviors","voice_family_completion_navigation","voice_family_warm_transfer","voice_family_service_lines","voice_family_outbound","voice_family_settings"]},"FamilyNotJudged":{"properties":{"code":{"$ref":"#/components/schemas/FamilyNotJudgedCode"},"message":{"$ref":"#/components/schemas/ReadinessLabel"},"fields":{"items":{"$ref":"#/components/schemas/ReadinessLabel"},"type":"array","title":"Fields","description":"Where the author looks, as dotted paths."}},"type":"object","required":["code","message","fields"],"title":"FamilyNotJudged"},"FamilyNotJudgedCode":{"type":"string","enum":["agent_version_missing","family_not_on_contract","voice_config_unreadable","graph_missing","graph_version_missing","graph_version_unreadable"]},"FamilyPolicyRefusal":{"properties":{"code":{"type":"string","enum":["family_warm_transfer_unsupported","family_cannot_speak_service_lines"],"title":"Code"},"message":{"type":"string","title":"Message"},"fields":{"items":{"type":"string"},"type":"array","title":"Fields"}},"type":"object","required":["code","message","fields"],"title":"FamilyPolicyRefusal"},"VersionSetStarts":{"properties":{"version_set":{"$ref":"#/components/schemas/ReadinessLabel"},"kinds":{"items":{"$ref":"#/components/schemas/StartKind"},"type":"array","title":"Kinds"},"kinds_known":{"type":"boolean","title":"Kinds Known","description":"False when the version set's family is unknown (families[].source is agent_missing): kinds is then empty and says nothing; a client offers no start from it and shows why."}},"type":"object","required":["version_set","kinds","kinds_known"],"title":"VersionSetStarts"},"StartKind":{"type":"string","enum":["text","test_call","app_session"]},"ServiceReadinessResponse":{"properties":{"voice_use_cases":{"items":{"$ref":"#/components/schemas/VoiceUseCase"},"type":"array","title":"Voice Use Cases"},"lines":{"items":{"$ref":"#/components/schemas/Line"},"type":"array","title":"Lines"},"families":{"items":{"$ref":"#/components/schemas/BoundFamily"},"type":"array","title":"Families"},"starts":{"items":{"$ref":"#/components/schemas/VersionSetStarts"},"type":"array","title":"Starts","description":"Each version set, release first, with the starts its service takes: a client offers these and no other. A kind listed is one the platform runs for this service's channel and family; it is not a judgement that the start succeeds (families[].family_judgement and family_refusals say that). Every service has an entry per version set, a text one too."},"policies":{"$ref":"#/components/schemas/Policies"},"launch":{"$ref":"#/components/schemas/Launch"}},"type":"object","required":["voice_use_cases","lines","families","starts","policies","launch"],"title":"ServiceReadinessResponse"},"VoiceUseCase":{"properties":{"label":{"$ref":"#/components/schemas/ReadinessLabel"},"channel":{"anyOf":[{"$ref":"#/components/schemas/ReadinessLabel"},{"type":"null"}]},"available":{"type":"boolean","title":"Available"},"fallback_forwarding_number_set":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fallback Forwarding Number Set","description":"Whether an inbound voice use case has a fallback forwarding number, where inbound calls forward when channel-manager does not answer. Informational: unset does not block a save. Null for an outbound or unavailable use case. The number itself is never returned."}},"type":"object","required":["label","channel","available","fallback_forwarding_number_set"],"title":"VoiceUseCase"},"Line":{"properties":{"kind":{"$ref":"#/components/schemas/LineKind"},"label":{"$ref":"#/components/schemas/ReadinessLabel"},"use_cases":{"items":{"$ref":"#/components/schemas/Dialability"},"type":"array","title":"Use Cases"}},"type":"object","required":["kind","label","use_cases"],"title":"Line"},"LineKind":{"type":"string","enum":["forward_to","approved_destination","fallback_to","after_hours_destination","test_destination"]},"Dialability":{"properties":{"label":{"$ref":"#/components/schemas/ReadinessLabel"},"channel":{"anyOf":[{"$ref":"#/components/schemas/ReadinessLabel"},{"type":"null"}]},"will_dial":{"type":"boolean","title":"Will Dial","description":"Passes the use case's current dial gate when this line is selected."},"reason":{"anyOf":[{"$ref":"#/components/schemas/UseCaseDialability"},{"type":"string","const":"use_case_missing"}],"title":"Reason"}},"type":"object","required":["label","channel","will_dial","reason"],"title":"Dialability"},"UseCaseDialability":{"type":"string","enum":["own_number","listed","not_listed"]},"BoundFamily":{"properties":{"version_set":{"$ref":"#/components/schemas/ReadinessLabel"},"family":{"anyOf":[{"type":"string","enum":["concurrence","gpt_realtime","eleven_realtime","gpt_live","grok_voice","phonic"]},{"type":"null"}],"title":"Family"},"source":{"type":"string","enum":["service","agent","engine_default","agent_missing"],"title":"Source"},"capabilities":{"anyOf":[{"$ref":"#/components/schemas/SessionCapabilities"},{"type":"null"}]},"dynamic_behaviors_configured":{"type":"boolean","title":"Dynamic Behaviors Configured"},"ignored_settings":{"items":{"type":"string"},"type":"array","title":"Ignored Settings","description":"The service settings, as dotted paths from the service (keyterms, voice_config.max_buffer_delay_ms), that the service sets to a non-default value and this family does not read. Advisory: the config is valid and saves, and a setting listed here may still be refused (see family_refusals). Empty, and not known, when ignored_settings_known is false."},"ignored_settings_known":{"type":"boolean","title":"Ignored Settings Known","description":"Whether ignored_settings was read: false when the version set's family is unknown or the stored service no longer validates, so an empty list says nothing."},"family_judgement":{"type":"string","enum":["judged","not_judged"],"title":"Family Judgement","description":"judged: family_refusals is every refusal the voice family contract and the family's delivery rules find for this version set, empty when the family runs it as authored. not_judged: the version set could not be judged (family_not_judged says why), so family_refusals may be incomplete and an empty one is never a pass."},"family_refusals":{"items":{"$ref":"#/components/schemas/FamilyRefusal"},"type":"array","title":"Family Refusals","description":"Each reason the family cannot run this version set as stored, with the code, message and fields a save refuses it with: the family's admission for the workspace when the service names the family, its delivery rules held to the whole config, then the contract's rules on the program the set's agent version runs. A client shows each one's code, message and fields and computes none. Messages have every digit redacted; a save plan's problems keep the exact text."},"family_not_judged":{"anyOf":[{"$ref":"#/components/schemas/FamilyNotJudged"},{"type":"null"}],"description":"Why the version set was not judged, when family_judgement is not_judged; null otherwise."}},"type":"object","required":["version_set","family","source","capabilities","dynamic_behaviors_configured","ignored_settings","ignored_settings_known","family_judgement","family_refusals","family_not_judged"],"title":"BoundFamily"},"Policies":{"properties":{"forward_call_configured":{"type":"boolean","title":"Forward Call Configured"},"warm_transfer":{"type":"boolean","title":"Warm Transfer"},"warm_transfer_on_queue":{"type":"string","enum":["hand_over","treat_as_miss"],"title":"Warm Transfer On Queue"},"warm_transfer_on_miss":{"type":"string","enum":["hand_back","offer_number","cold_to_fallback"],"title":"Warm Transfer On Miss"},"hours_configured":{"type":"boolean","title":"Hours Configured"},"default_destination_configured":{"type":"boolean","title":"Default Destination Configured","description":"A dynamic service names the line a transfer dials when the agent names none."},"transfer_reasons":{"items":{"$ref":"#/components/schemas/ReadinessLabel"},"type":"array","title":"Transfer Reasons","description":"The keys of the reasons every forward_call names and the call records, empty when none."},"destination_hours_configured":{"type":"boolean","title":"Destination Hours Configured"},"verification_callers_configured":{"type":"boolean","title":"Verification Callers Configured"},"unsupported_language_route":{"type":"boolean","title":"Unsupported Language Route"}},"type":"object","required":["forward_call_configured","warm_transfer","warm_transfer_on_queue","warm_transfer_on_miss","hours_configured","default_destination_configured","transfer_reasons","destination_hours_configured","verification_callers_configured","unsupported_language_route"],"title":"Policies"},"Launch":{"properties":{"demo_mode":{"type":"boolean","title":"Demo Mode"},"medical_emergency_ending":{"type":"string","enum":["stay_on_line","end_after_script"],"title":"Medical Emergency Ending"},"output_check_modes":{"$ref":"#/components/schemas/OutputCheckModes"},"test_callers_registered":{"type":"boolean","title":"Test Callers Registered"},"verification_callers_registered":{"type":"boolean","title":"Verification Callers Registered","description":"Every configured verification caller is a registered test caller; false when none are configured."},"human_line_configured":{"type":"boolean","title":"Human Line Configured","description":"A fallback_to or static forward_to is configured for the safe exit; pickup is not verified."},"answer_hours_configured":{"type":"boolean","title":"Answer Hours Configured","description":"The voice config sets answer_hours: outside them the agent takes no call."},"readiness_requires":{"items":{"type":"string","enum":["binding","service_active","residency","fleet","valkey","lakebase","platform_api","outside_answer_hours","openai_realtime","decisions","warehouse"]},"type":"array","title":"Readiness Requires","description":"What the live voice-call readiness check gates this service's phone calls on: the base set every call needs, outside_answer_hours when answer_hours are set, then the voice config's saved readiness_requires."},"effective_voice":{"anyOf":[{"$ref":"#/components/schemas/EffectiveVoice"},{"type":"null"}],"description":"What a gpt_realtime release version set opens its session with once each null model, voice and reasoning_effort resolves to the runtime's default. Null for any other family."}},"type":"object","required":["demo_mode","medical_emergency_ending","output_check_modes","test_callers_registered","verification_callers_registered","human_line_configured","answer_hours_configured","readiness_requires","effective_voice"],"title":"Launch"},"OutputCheckModes":{"properties":{"phi_unverified":{"$ref":"#/components/schemas/ReadinessLabel"}},"type":"object","required":["phi_unverified"],"title":"OutputCheckModes","description":"Mode values follow the library's read model as it adds supported modes."},"EffectiveVoice":{"properties":{"session_provider":{"type":"string","const":"gpt_realtime","title":"Session Provider"},"model":{"type":"string","enum":["gpt-realtime-2.1","gpt-realtime-2.1-mini"],"title":"Model"},"voice":{"type":"string","maxLength":256,"title":"Voice"},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"],"title":"Reasoning Effort"}},"type":"object","required":["session_provider","model","voice","reasoning_effort"],"title":"EffectiveVoice"},"Unavailable":{"type":"string","enum":["agent_not_in_workspace","version_not_found","config_unreadable","config_incompatible","channel_manager_unavailable"]}}},"paths":{"/v1/{workspace_id}/services/{service_id}/plan":{"post":{"tags":["Services"],"summary":"Plan a service update","description":"Plan `PUT /v1/{workspace_id}/services/{service_id}` with the body it takes, under its permission (`Service.update`) and scope. A permission the update would need for a field it sets (`platform:admin`) is a problem, not a 403. Writes nothing: it runs the save's own checks and lists each refusal the save would answer with in `problems` (`status`, `code`, `message`, `where` and the save's exact `detail`), in the order the save meets them, where the save stops at the first. A check the save only reaches past an earlier refusal is skipped where it would read through what that refusal named: the version pins and the realtime pairing of an agent or a context graph the workspace lacks, the behavior pins of a version set whose versions don't resolve, and every check after the service config when what the save would store does not validate. A refusal only the write itself can raise, such as a pinned set archived since, is not listed. `changes` is the field diff against the stored service, `families` each version set's family with its capability row and the family's delivery rules held to the whole config, and `readiness` the readiness readback of what the save would store. Each family lists what the voice family contract refuses it for in `family_refusals` (`family_judgement` `judged`), or is `not_judged` with a code, which is never a pass; its messages have digits redacted, where `problems[].message` keeps the exact text. Read rate limit; audited as `service.plan.read`.","operationId":"plan-service-update","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateServiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicePlanResponse"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"Insufficient permissions."},"404":{"description":"Service not found."},"422":{"description":"A body the save itself would not parse."}}}}}}
```

## Voice Turn

> Run one WhatsApp-style voice-note turn against the service's agent.\
> \
> Accepts OGG Opus audio (or any format Deepgram's prerecorded endpoint\
> accepts). Server keys the conversation on \`\`(workspace, service,\
> phone\_number)\`\` and returns the agent's spoken reply as OGG Opus — or WAV\
> PCM16 when the \`\`Accept\`\` header prefers \`\`audio/wav\`\`.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"Body_voice-turn":{"properties":{"audio":{"type":"string","contentMediaType":"application/octet-stream","title":"Audio"},"phone_number":{"type":"string","maxLength":16,"pattern":"^\\+[1-9]\\d{1,14}$","title":"Phone Number"}},"type":"object","required":["audio","phone_number"],"title":"Body_voice-turn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}/voice-turn":{"post":{"tags":["Services"],"summary":"Voice Turn","description":"Run one WhatsApp-style voice-note turn against the service's agent.\n\nAccepts OGG Opus audio (or any format Deepgram's prerecorded endpoint\naccepts). Server keys the conversation on ``(workspace, service,\nphone_number)`` and returns the agent's spoken reply as OGG Opus — or WAV\nPCM16 when the ``Accept`` header prefers ``audio/wav``.","operationId":"voice-turn","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}},{"name":"accept","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_voice-turn"}}}},"responses":{"200":{"description":"Agent spoken reply — OGG Opus by default, WAV PCM16 (16 kHz mono) when the request's Accept header prefers audio/wav","content":{"application/json":{"schema":{}},"audio/ogg":{},"audio/wav":{}}},"204":{"description":"Agent elected silence"},"409":{"description":"Concurrent voice turn in progress for this speaker"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Get a service's effective safety checks

> Get the safety checks a service runs, its reply checks and its floor on text: every key's effective value and\
> whether it comes from the platform default, the workspace default or the service's own setting.\
> \
> Permissions: \`Service.view\`.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Services"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SafetySettingsResponse":{"properties":{"output_checks":{"additionalProperties":{"$ref":"#/components/schemas/SafetyValue"},"propertyNames":{"enum":["phi_unverified","blocklisted_number","misspelled_word","dosing_or_med_change","diagnosis","false_confirmation","dispatch_promise","action_promise","unbacked_action_claims"]},"type":"object","title":"Output Checks","description":"The reply checks a call runs."},"emergency_floor":{"additionalProperties":{"$ref":"#/components/schemas/SafetyValue"},"propertyNames":{"enum":["text_self_harm","text_medical","held_text"]},"type":"object","title":"Emergency Floor","description":"How the medical-emergency and crisis floor acts on text conversations, voice notes and simulations."}},"type":"object","required":["output_checks","emergency_floor"],"title":"SafetySettingsResponse","description":"Each safety key with its effective value and source."},"SafetyValue":{"properties":{"mode":{"type":"string","maxLength":16,"title":"Mode","description":"The mode the check runs in. `off` means the check does not run."},"source":{"$ref":"#/components/schemas/SafetySource","description":"`platform` (the default), `workspace` (the workspace default) or `service` (the service's override)."}},"type":"object","required":["mode","source"],"title":"SafetyValue","description":"One safety key's effective value and the layer it comes from."},"SafetySource":{"type":"string","enum":["platform","workspace","service"]},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/services/{service_id}/safety":{"get":{"tags":["Services"],"summary":"Get a service's effective safety checks","description":"Get the safety checks a service runs, its reply checks and its floor on text: every key's effective value and\nwhether it comes from the platform default, the workspace default or the service's own setting.\n\nPermissions: `Service.view`.","operationId":"get-service-safety","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"service_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetySettingsResponse"}}}},"403":{"description":"Requires `Service.view`"},"404":{"description":"Service not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Rate limited"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.concurrence.com/api-reference/readme/platform/services.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
