Dynamic Behaviors
Create dynamic behavior sets and versions, pin a version on a service, move or clear a pin, and read which behavior a reply used, with limits and errors.
A workspace keeps its dynamic behaviors in a library of sets. Each set has numbered versions that cannot be edited. A service runs a behavior when its release version set pins one of its versions. This page covers the library operations, pinning, limits, and errors. Dynamic Behaviors explains how behaviors are chosen and how long they stay, and Author Dynamic Behaviors covers how to write them.
The terms used below:
A set is one behavior, with a name, optional tags, and numbered versions.
A version holds a condition, examples, an instruction, a mode, sticky turns, and a note.
A version set is a named configuration on a service. Calls and conversations run the service's
releaseversion set.A pin names a set, an exact version, whether it is enabled, and the states it applies in. A version set holds a list of pins.
The selector is the model that chooses at most one behavior on each caller turn from the enabled pins that apply.
Writes need an admin or owner key. See Permissions. Library writes and the version set upsert allow 10 requests per minute for each credential and route, so a script that creates many sets backs off on 429. See Limits.
A typical sequence:
Create a set with its first version.
Write the next version whenever the behavior changes.
Pin a version on a test service's
releaseversion set, check it, then pin it on the live service.Read what applied on conversations and calls.
Move the pin back, or disable it, to roll back.
Retire a set that no service needs: clear its pins, then archive it.
Create a Set
Creating a set stores the set and its version 1 in one request, and returns 201 with the set. name and first_version are required. The name is trimmed and must be unique among the workspace's sets that are not archived, ignoring case. Another workspace can use the same name.
Create a set with its version 1, together. The name is unique among the workspace's sets that aren't archived, whatever the case. id is optional, and setting it needs the platform:admin scope: an import that derives it from the source's id gets a 409 instead of a second set when it creates the set again. Requires DynamicBehaviorSet.create permission, for a first version in add or replace mode alike.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
A new set, written with its first version.
The set's id, unique across workspaces. Omitted, the platform generates it; setting it needs the
platform:admin scope. A client that derives it from something stable, as an import does from its
workspace's id and the source's id, gets a conflict instead of a second set when it creates the set again.
What authors call it. Unique in the workspace among sets that aren't archived, whatever the case. The selector reads it with the condition and examples, and the reply prompt never does.
Labels for authors. They never reach a prompt.
Successful Response
A set in the library, without its versions.
When it was archived. Null: not archived.
Missing or invalid API key.
Insufficient permissions.
The name or the id is already in use.
Invalid request body.
Rate limited.
POST /v1/{workspace_id}/dynamic-behavior-sets HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 197
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"tags": [
"text"
],
"first_version": {
"condition": "text",
"examples": [
"text"
],
"instruction": "text",
"mode": "add",
"sticky_turns": 1,
"note": "text"
}
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"tags": [
"text"
],
"latest_version": 1,
"archived_at": "2026-01-01T00:00:00.000Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}In first_version, mode defaults to add, sticky_turns to 1, and examples to an empty list. instruction is optional: a version without one can be chosen and recorded, and it adds no guidance to the reply (see What the Reply Follows). A replace version must have an instruction. Leave id out so the platform generates it. Setting it needs platform:admin, which workspace credentials do not carry.
Example
Example Response
A set carries no version text. Read a version for the condition, examples, and instruction.
Write the Next Version
A version cannot be edited. To change a behavior, write the next version. A version is written in full: read the latest version, change what you want, and send every field. A field you leave out takes its default (no instruction, add mode, sticky_turns of 1, no examples), and nothing carries over from the previous version. Send expected_latest_version, the latest version number you read, so that two writers cannot overwrite each other. When the set is at a different version, the request returns 409 and stores nothing. Read the set, apply your change to its latest version, and send the request again. Of two writers racing on one set, exactly one succeeds.
No service runs the version until a version set pins it. PUT, PATCH, and DELETE on a version return 405, and a set has no delete operation.
Write the set's next version. expected_latest_version is the latest version the write was made from; when the set has moved on, or another write took the next number first, nothing is stored and the response is a 409. A version never changes, and no service runs it until its version set pins it. Requires DynamicBehaviorSet.update permission, for a version in add or replace mode alike.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
The latest version this write was made from. When the set has a different latest version, the write is refused with 409.
The next version of a set, or the first version of a new one.
When it applies, in terms of what the client wants or says. It describes the behavior to the selector.
Things a client says when it applies. The selector reads them; the reply never does.
The guidance the reply follows while the behavior is in force. The selector never reads it. Null: the behavior is decided and recorded, and changes no reply.
add: the guidance yields to every action guideline. replace: it stands in for the reply's action
guidelines, while boundary constraints, guardrails and safety rules stay. A replace-mode version needs an
instruction.
addPossible values: The fewest caller turns it stays in force once applied, counting the turn it was applied on.
1What changed, for the people reading the set's history. It never reaches a prompt.
Successful Response
One version of a set, as it was written.
When it applies, in terms of what the client wants or says. It describes the behavior to the selector.
Things a client says when it applies. The selector reads them; the reply never does.
The guidance the reply follows while the behavior is in force. The selector never reads it. Null: the behavior is decided and recorded, and changes no reply.
add: the guidance yields to every action guideline. replace: it stands in for the reply's action
guidelines, while boundary constraints, guardrails and safety rules stay. A replace-mode version needs an
instruction.
addPossible values: The fewest caller turns it stays in force once applied, counting the turn it was applied on.
1What changed, for the people reading the set's history. It never reaches a prompt.
Missing or invalid API key.
Insufficient permissions.
Dynamic behavior set or version not found.
The set's latest version isn't expected_latest_version, or the set is archived.
Invalid request body.
Rate limited.
POST /v1/{workspace_id}/dynamic-behavior-sets/{set_id}/versions?expected_latest_version=1 HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"condition": "text",
"examples": [
"text"
],
"instruction": "text",
"mode": "add",
"sticky_turns": 1,
"note": "text"
}{
"condition": "text",
"examples": [
"text"
],
"instruction": "text",
"mode": "add",
"sticky_turns": 1,
"note": "text",
"set_id": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-01-01T00:00:00.000Z"
}Example
Read the latest version first. Versions come newest first, so limit=1 returns it:
Then write version 2 from it. expected_latest_version is the version you read, and the body carries every field of version 2:
Example Response
The response is 201 with version 2:
Pin a Version on a Service
A version set pins library behaviors in its dynamic_behavior_sets list. Each pin has:
set_id: a set in the service's workspace that is not archived.version: the exact version the service runs.enabled: defaults totrue. A disabled pin stays on the version set and is not offered to the selector.states: the action and data collection states the pin applies in. The default, an empty list, means every one.
Pins keep the order you send them in. The order can break a tie between behaviors that fit equally well, but it is not a priority, so settle overlap in the conditions. A reorder is a pin change and is sent to the audit log. See Permissions. A version set pins a set once.
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).
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Version set name (e.g. 'release')
The service's updated_at this write was made from, exactly as the service returned it. When the service
has changed since, the write is refused with 409 and nothing is stored, so a stale page can't overwrite
another editor's pins. Left out, the write is not compared to what the caller last read.
Successful Response
No content
Missing or invalid API key.
Insufficient permissions.
Not found.
The service changed since expected_updated_at or since this request read it, or a pinned dynamic behavior set is archived.
Invalid request body.
PUT /v1/{workspace_id}/services/{service_id}/version-sets/{name} HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 441
{
"version_set": {
"agent_version_number": 1,
"context_graph_version_number": 1,
"llm_model_preferences": {
"ANY_ADDITIONAL_PROPERTY": {
"llm_name": "text",
"params": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"experience_controls": {
"reasoning_effort": "none",
"temperature": 1,
"top_p": 1
}
}
},
"dynamic_behavior_sets": [
{
"set_id": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"enabled": true,
"states": [
"text"
]
}
]
},
"expected_updated_at": "2026-01-01T00:00:00.000Z"
}No content
The upsert replaces or creates the whole named version set. Fields you leave out of version_set return to their defaults: agent_version_number and context_graph_version_number to the latest versions, and llm_model_preferences to empty. Only dynamic_behavior_sets keeps what is stored when you leave it out or send null, and [] clears every pin. To change pins only, read the service, send its version set back with the pins changed, and pass the service's updated_at as expected_updated_at. A pin is replaced whole as well: a pin you send without states applies in every state, and one you send without enabled is enabled.
Creating a service and updating one accept pins in the same shape, and creating a service with pins needs Service.update as well as Service.create. An update that sends version_sets replaces the whole map: a version set you do not send is removed with its pins, and release must be present. The upsert changes one version set and leaves the others alone. Service reads return each version set with its dynamic_behavior_sets.
Example
Read the service first. Its version_sets.release entry is what you send back, and its updated_at is the value for expected_updated_at. Services covers the read. Here the entry pins no behaviors:
The request below sends that entry back with one pin added. Copy agent_version_number, context_graph_version_number, and llm_model_preferences from your own read: a version number left out follows the latest version, and llm_model_preferences left out is emptied.
The response is 204 with no body. Read the service afterward: its version_sets.release entry shows the pins it runs.
Move, Disable, or Clear a Pin
Move a pin by upserting the version set with the same
set_idand a differentversion. Send the whole pin, with theenabledandstatesyou want it to keep. The version must exist, or the request returns404.Disable a pin with
"enabled": false. It stays on the version set, still counts toward the 254-pin limit, and still blocks archiving the set. It does not count toward the 160,000-character budget. A service whose pins are all disabled runs as if it pinned nothing. A disabled pin applies to calls and conversations that load the service's configuration afterward, and a call that has already started can keep the configuration it loaded.Clear one pin by leaving it out of the list, or every pin with
"dynamic_behavior_sets": [].
A write does not return the service's updated_at, so read the service again before the next one.
Saving a Pin Applies It
A pin on release applies to calls and conversations that load the service's configuration after the save. A call that has already started can keep the configuration it loaded. See Applying Version-Set Changes. A text conversation resumes with the behavior in force and the turns it has held. When its pin moved to another version in between, the hold carries over to the version the pin names, and earlier replies keep the version they ran with. A behavior that has been unpinned or disabled is not restored. A pin on another version set changes nothing that release runs.
Checks on a Pin
Every write that stores pins checks them, and a failed check stores nothing:
The set and version must exist in the workspace (
404), and the set must not be archived (409).A version set holds at most 254 pins, one per set (
422).The enabled pins' conditions and examples together carry at most 160,000 characters (
422). Disabled pins, set names, and instructions do not count.Every name in
statesmust be an action or data collection state of the Context Graph version the version set runs: itscontext_graph_version_number, or the graph's latest version when that isnull. A decision state, an annotation state, an unknown name, or a name listed twice returns422. An emptystateslist reads no graph.
A pin check that finds problems returns 422 with each one named by its position in the list, its set id, and the field. The size budget is about the whole version set, so its entry has null for index, id, and field. This body has one of each:
Concurrent Edits
expected_updated_at is the service's updated_at exactly as the service returned it, with a time zone. When the service has changed since, the write returns 409 and stores nothing: reload the service and apply the change again. Without expected_updated_at, the write still lands only on the service as the request read it, so another writer's change in between is a 409 too. A value without a time zone returns 422.
Speech-to-Speech Voice Families
Dynamic behaviors run on text channels and on three voice families: the concurrence cascade (platform-managed voice), gpt_realtime, and gpt_live (GPT-Live). A gpt_realtime service can pin enabled behaviors, and runs them on single-state and multi-state graphs. Behaviors are offered, held, and ended by the same rules as on other channels. The agent starts its reply as the caller stops speaking, before that turn's choice is made, so a behavior chosen on a caller turn takes effect from a later reply, usually the reply to the caller's next turn. When you test a behavior on gpt_realtime, keep each test call going for at least one caller turn after the turn that should apply it.
Dynamic behaviors do not run on eleven_realtime, grok_voice, or phonic voice sessions: no choice is made and no instruction reaches the session. A write that would run a voice service's version set on one of these families while that version set pins an enabled behavior returns 422 and stores nothing:
This applies to creating or updating a service and to the version set upsert, after the other pin checks pass. Only enabled pins count, so a version set whose pins are all disabled is accepted. A text service is not checked. See Session Provider.
Context Graph Versions
A Context Graph version carries no dynamic behaviors. Its dynamic_behaviors field is deprecated: reads return an empty list, a create request accepts only [] or no field, and the runtime ignores the field. Create behaviors in the library and pin them.
Two checks tie pins to the graph:
Changing a service's
context_graph_idchecks the stored pins' states against the graph it moves to and returns422when a pinned state is missing there.Creating a Context Graph version returns
422when the version has no action or data collection state that a pin names, for each version set that follows the graph's latest version. The detail lists each service, version set, set, and missing states. A version set pinned to a specific graph version is not checked. Keep those states, or change the pins first.
Read What Applied
On a conversation read, each agent message carries dynamic_behavior, the behavior its reply was rendered with: the set's id, version, name, and mode. It is null when no behavior was in force for the reply, on user and system messages, and on an agent line the agent did not generate from the conversation, such as a filler, an emergency script, a correction, or an operator's words, even while a behavior is in force. It is on GET /v1/{workspace_id}/conversations/{conversation_id}, on its /turns list, and on the agent message of a POST turn response.
A call's detail lists turns. Each turn carries dynamic_behavior and dynamic_behavior_decision, which records what the caller turn's choice did, or null when no choice ran. The call also lists triggered_behaviors, the names of the behaviors its agent lines ran with, in order of first use. It is the compatibility call detail, GET /v1/{workspace_id}/calls/{call_id}.
Read dynamic_behavior_decision on the day of the call. About a day after a call, its turns are rebuilt from the saved transcript, which keeps each reply's dynamic_behavior and the call's triggered_behaviors and leaves dynamic_behavior_decision null on every turn. A text conversation read returns the behavior each reply used, and the choice made on each caller turn is returned on calls.
A skipped turn records why:
On a call, a choice that lands after a reply was rendered is recorded on the turn as dynamic_behavior_decision, and the reply that was already spoken keeps the dynamic_behavior it ran with. A decision record has behavior_id and behavior_version for the behavior in force after the choice, chosen_id and chosen_version for what the selector chose, confidence (null when none is reported, and a choice with no confidence counts as having enough, so below_floor does not apply to it), candidate_count for the behaviors offered, and cited_message_indexes for the turn's own messages, the agent's line before it and then the caller's (the selector reads earlier turns too). While a call is live, its observer connection delivers a dynamic_behavior_decided event when a caller turn's choice lands. See Observer Events.
outcome
Meaning
applied
The chosen behavior is in force.
kept
The behavior in force stays because the selector chose it again or said, with enough confidence, that it still applies.
held
The behavior in force stays because it is inside its sticky_turns and the selector chose none, chose another behavior without enough confidence, or gave no usable answer. A different behavior chosen with enough confidence is applied instead.
none, below_floor, failed
Nothing is in force after the decision: no behavior applies, a choice without enough confidence, or no usable answer.
skipped
No choice ran and the behavior in force ended. reason says why.
superseded
The caller's next turn cancelled the choice before it landed. The behavior in force stays as it was.
On a skip, reason is emergency_floor (the platform recognized a medical emergency or self-harm), person_request (the caller asked for a person), empathy_hold (the turn was at the highest empathy tier), no_candidates (no enabled pin applies in the current state), or suspended (the platform has paused dynamic behaviors for the service or its workspace). Recognizing an emergency or a request for a person is a pattern check on the caller's words in English and Spanish. It covers a limited set of phrasings and can miss others, and the choice runs on a turn it misses. See How Long a Behavior Stays.
On a failed outcome, and on a held one that came from a failed choice, reason says why the selector gave no usable answer:
refusal,out_of_set, andmalformed: it answered, but the answer could not be used. It declined, chose something that was not offered, or gave an answer that could not be read.http_4xx,http_retryable,connection, andtimeout: the request was rejected, hit a retryable error, lost its connection, or ran out of time.breaker_open: the platform had paused sending requests after repeated failures.options_exceeded: a request offered more behaviors than the selector accepts.
The next caller turn runs its own choice.
none on a turn that should match
Sharpen the condition and add examples in the callers' words. See Author Dynamic Behaviors.
below_floor
The selector chose a behavior without enough confidence. Sharpen its condition and separate it from its neighbors.
skipped with no_candidates
No enabled pin applies in the state the turn started in. Check the pin's enabled and states.
failed, or held with a reason
The selector gave no usable answer for that turn. If it repeats, contact your Concurrence representative with the call id.
skipped with suspended
The platform has paused dynamic behaviors for the service or its workspace.
Retire a Set
A set cannot be deleted. To retire one, see which services pin it, clear its pin from every version set that holds it (a disabled pin counts too), and then archive it. Archiving takes the set out of the default list and frees its name, and restoring it brings it back.
See Which Services Pin a Set
The usage operation lists the services whose version sets pin a set. Each item is a service, with its id and its own name, and the version sets that pin the set, each with the pinned version, enabled, and states. Disabled pins are listed. Items come in service-name order and page with limit, 50 by default and up to 200. A set that nothing pins returns an empty list. To list the sets one service pins, use the set list with service_id.
List the services whose version sets pin the set, with each pinning version set, the version it runs, whether the pin is enabled and its states. A pinned set cannot be archived. Requires DynamicBehaviorSet.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
50Successful Response
Missing or invalid API key.
Insufficient permissions.
Dynamic behavior set not found.
Validation Error
Rate limited.
GET /v1/{workspace_id}/dynamic-behavior-sets/{set_id}/usage HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"version_sets": [
{
"name": "text",
"version": 1,
"enabled": true,
"states": [
"text"
]
}
]
}
],
"has_more": true,
"continuation_token": null
}Example
Example Response
Archive and Restore a Set
Update a set to rename it, change its tags, or archive it. A field you leave out stays as it is, and the update writes no version. A set cannot be deleted. Archiving takes it out of the default list and frees its name. Restoring it with archived: false brings it back, and returns 409 when another set that is not archived has taken the name.
Change a set's name, tags or archive state without a new version. A field left out stays as it is. A set is never deleted: archived: true takes it out of the default list and gives its name back, and is refused (409, naming the services) while a version set pins it. Requires DynamicBehaviorSet.update permission, and DynamicBehaviorSet.delete to archive.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
What can change on a set without a new version. A field left out stays as it is.
What authors call it. The selector reads the name, so a rename changes what it sees for every service that pins the set, without a new version.
True archives the set, which a version set that pins it refuses. False brings it back.
Successful Response
A set in the library, without its versions.
When it was archived. Null: not archived.
Missing or invalid API key.
Insufficient permissions.
Dynamic behavior set not found.
The name is in use by a set that isn't archived, or version sets pin the set an archive would remove.
Invalid request body.
Rate limited.
PATCH /v1/{workspace_id}/dynamic-behavior-sets/{set_id} HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"name": "text",
"tags": [
"text"
],
"archived": true
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"tags": [
"text"
],
"latest_version": 1,
"archived_at": "2026-01-01T00:00:00.000Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}A set that any version set pins, enabled or not, cannot be archived: the request returns 409, stores nothing, and names up to ten services with their version sets. Clear its pins first. Sending the current name or tags, archiving an archived set, or sending {} returns 200 and changes and audits nothing.
A set's name belongs to the set, not to a version. Renaming a pinned set changes the name the selector reads, and the name recorded on later replies, for every service that pins it. It involves no version write and no pin change.
Example
To restore the set, send {"archived": false}.
List and Get Sets
A list returns the workspace's sets without their versions, newest update first. By default it returns only sets that are not archived.
List the workspace's dynamic behavior sets with pagination, without their versions. Sets that aren't archived by default. Filter by name text, tag, or the service whose version sets pin them. Requires DynamicBehaviorSet.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
[]Sets whose name contains this text, whatever the case.
Sets that carry this tag.
False (the default): sets that aren't archived. True: only archived sets.
falseSets that one of this service's version sets pins.
50Successful Response
Missing or invalid API key.
Insufficient permissions.
Validation Error
Rate limited.
GET /v1/{workspace_id}/dynamic-behavior-sets HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"tags": [
"text"
],
"latest_version": 1,
"archived_at": "2026-01-01T00:00:00.000Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
],
"has_more": true,
"continuation_token": null
}Narrow the list with these query parameters:
q: the name contains this text, in any case.%and_match themselves.tag: sets that carry this exact tag.archived:truelists only archived sets.service_id: sets that any version set of this service pins, enabled or not. The list is empty when the service is not in the workspace.sort_by:+name,-name,+updated_at, or-updated_at. Repeat it for more keys, applied left to right. In a URL, write the plus sign as%2B.
A change to a set's name, tags, or archive state, or a version write, moves the set to the front of the default list. When has_more is true, send the returned continuation_token back unchanged to get the next page. See Pagination.
Example
Example Response
Get a set by its id. An archived set is returned too. A set of another workspace, or an id the workspace does not have, returns 404.
Retrieve a set, without its versions, with the number of its latest version. Requires DynamicBehaviorSet.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
A set in the library, without its versions.
When it was archived. Null: not archived.
Missing or invalid API key.
Insufficient permissions.
Dynamic behavior set not found.
Validation Error
Rate limited.
GET /v1/{workspace_id}/dynamic-behavior-sets/{set_id} HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"tags": [
"text"
],
"latest_version": 1,
"archived_at": "2026-01-01T00:00:00.000Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}List and Get Versions
A set's versions come newest first, 20 per page by default and up to 100, and page like the set list.
List a set's versions, newest first, with pagination. Requires DynamicBehaviorSet.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
20Successful Response
Missing or invalid API key.
Insufficient permissions.
Dynamic behavior set or version not found.
Validation Error
Rate limited.
GET /v1/{workspace_id}/dynamic-behavior-sets/{set_id}/versions HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"condition": "text",
"examples": [
"text"
],
"instruction": "text",
"mode": "add",
"sticky_turns": 1,
"note": "text",
"set_id": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"has_more": true,
"continuation_token": null
}A version is returned as it was written, with its condition, examples, instruction, mode, sticky_turns, and note. A version the set does not have returns 404.
Get a dynamic behavior set version
Retrieve one version of a set, as it was written. Requires DynamicBehaviorSet.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
One version of a set, as it was written.
When it applies, in terms of what the client wants or says. It describes the behavior to the selector.
Things a client says when it applies. The selector reads them; the reply never does.
The guidance the reply follows while the behavior is in force. The selector never reads it. Null: the behavior is decided and recorded, and changes no reply.
add: the guidance yields to every action guideline. replace: it stands in for the reply's action
guidelines, while boundary constraints, guardrails and safety rules stay. A replace-mode version needs an
instruction.
addPossible values: The fewest caller turns it stays in force once applied, counting the turn it was applied on.
1What changed, for the people reading the set's history. It never reaches a prompt.
Missing or invalid API key.
Insufficient permissions.
Dynamic behavior set or version not found.
Validation Error
Rate limited.
GET /v1/{workspace_id}/dynamic-behavior-sets/{set_id}/versions/{version} HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"condition": "text",
"examples": [
"text"
],
"instruction": "text",
"mode": "add",
"sticky_turns": 1,
"note": "text",
"set_id": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-01-01T00:00:00.000Z"
}Permissions
Requests use the same Bearer API key as every other Platform route. The role behind the key decides what it can do:
List and get sets, list and get versions, usage
DynamicBehaviorSet.view
Create a set
DynamicBehaviorSet.create
Rename, retag, or write a version
DynamicBehaviorSet.update
Archive a set
DynamicBehaviorSet.update and DynamicBehaviorSet.delete
Pin, move, or clear a pin
Service.update
Read a service and its pins
Service.view
Every role holds DynamicBehaviorSet.view and Service.view. Only admin and owner hold the create, update, and delete permissions, so a viewer, operator, or member key gets 403 on every write. A role that can read a version can read its instruction, so write instructions as text any member of the workspace can read.
Replace mode needs the same permissions as add mode. An admin or owner key creates a set whose first version is in replace mode, writes a later replace version, restores one as a new version, and pins, moves, enables, disables, or removes a pin on one.
Setting a set's own id when you create it needs the platform:admin scope on top of the role. No workspace role includes the scope, owner and admin included. A workspace cannot delegate it, and a workspace API key does not carry it, so leave id out and let the platform generate it. The scope does not replace the role: a viewer that holds it still gets 403.
Library changes and changes to a version set's pins are written to the audit log on a best-effort basis after the change commits. A failed audit write does not block or undo the change, so monitor audit delivery. admin and owner can read the log. The events are: dynamic_behavior_set.create, dynamic_behavior_set.update, dynamic_behavior_set.archive, dynamic_behavior_set.unarchive, dynamic_behavior_set.version.create, and service.dynamic_behavior_sets.update. A refused or unchanged write sends no event. Events carry ids, names, tags, versions, modes, and counts, not the text of a condition, example, or instruction. See Compliance and Audit.
Limits
Whitespace around every text field is trimmed before its length is checked.
Each operation's reference gives the bounds of its fields. These are the limits to plan around:
Set name
1 to 120 characters. Unique among the workspace's sets that are not archived, ignoring case.
condition
Required, 1 to 1,000 characters.
examples
At most 50, each 1 to 500 characters.
instruction
null, or 1 to 50,000 characters. Required when mode is replace.
sticky_turns
1 to 5. The default is 1.
Pins per version set
At most 254, one per set, enabled or not.
Selection budget
The enabled pins' conditions and examples together carry at most 160,000 characters per version set.
On each caller turn the selector reads the conditions and examples of the behaviors offered on that turn, so fewer offered behaviors give it less to read. A caller turn that runs a choice makes one more model call, which is counted in usage like other model usage and, on text, adds its time to the reply. Library writes and the version set upsert use the common write policy, 10 requests per minute, and library reads use the common read policy, 60 per minute, each per credential and route. A request over the limit returns 429 with Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset. See Rate Limits.
Errors
Library Operations
401
The credential is missing or invalid.
Send a valid workspace API key as a Bearer token.
403
Missing permission: DynamicBehaviorSet:Create, or the same for View, Update, or Delete.
Use a key whose role holds the permission, admin or owner for writes.
403 or 409
Setting a dynamic behavior set's id requires platform:admin scope, or A dynamic behavior set with id <id> already exists, or the name 'X' is in use
Leave id out of the request. Setting it needs platform:admin.
404
Dynamic behavior set not found: <id>
Check the id and the workspace. A set of another workspace is not found.
404
Dynamic behavior set version not found: <set_id>/v<version>
List the set's versions and use one that exists.
405
PUT, PATCH, or DELETE on a version.
A version cannot be edited or deleted. Write the next version.
409
A dynamic behavior set named 'X' already exists in this workspace, on create, rename, or restore.
Use another name, or rename or archive the set that holds it.
409
Dynamic behavior set is at version N; this write expected M. Reload and apply the change to version N.
Read the set, apply your change to version N, and send again with expected_latest_version set to N.
409
Dynamic behavior set is archived; restore it before adding a version
Restore the set with archived: false, then write the version.
409
Cannot archive a dynamic behavior set that version sets pin. Unpin it from: ...
Move the listed pins off the set or remove them, then archive.
422
A body outside its bounds, an unknown field, replace without an instruction, a missing or out-of-range expected_latest_version, a set_id that is not a UUID, or an invalid list parameter.
Fix the field the detail names. See Limits.
429
Rate limit exceeded.
Wait the number of seconds in Retry-After.
Pins and Services
403
Missing permission: Service:Update
Pin with an admin or owner key.
404
Dynamic behavior set <set_id> version <n> not found (version set 'release')
List the set's versions and pin one that exists in this workspace.
409
Archived dynamic behavior sets can't be pinned (version set 'release'): 'name'. Unarchive them or unpin them.
Restore the set, or leave it out of the pins.
409
The service changed since it was read, so nothing was stored. Reload it and apply the change again.
Read the service, apply your change to what it returns, and send again.
422
A pin check body, as in Checks on a Pin: a state that is not an action or data collection state, a name listed twice, or a size over the budget.
Fix the entries the body names.
422
A set pinned twice, more than 254 pins, or an expected_updated_at without a time zone.
Fix the request. See Limits.
422
<family> runs no dynamic behaviors, but version set 'release' pins ..., where <family> is eleven_realtime, grok_voice, or phonic
Disable or unpin the behaviors, or set voice_config.session_provider to concurrence. See Speech-to-Speech Voice Families.
422
Creating a Context Graph version: This version of context graph 'X' has no state that some dynamic behavior pins apply in. Keep those states, or change the pins first.
Keep the states the detail lists, or change those pins first.
422
A Context Graph version with a dynamic_behaviors list that is not empty.
Send [] or leave the field out. Create the behaviors in the library and pin them.
Related Pages
Author Dynamic Behaviors covers writing, testing, and rolling back behaviors.
Services covers version sets and the
gpt_realtimesession provider.Voice Agent covers the call detail that returns each caller turn's choice, and Conversations the conversation reads that return the behavior a reply used.
Observer Events lists the event a live call delivers when a choice lands.
Last updated
Was this helpful?

