For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Dynamic Behavior Sets

List dynamic behavior sets

get
/v1/{workspace_id}/dynamic-behavior-sets

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.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
Query parameters
sort_bystring[]OptionalDefault: []
qstring · min: 1 · max: 200 · nullableOptional

Sets whose name contains this text, whatever the case.

tagstring · min: 1 · max: 64 · nullableOptional

Sets that carry this tag.

archivedbooleanOptional

False (the default): sets that aren't archived. True: only archived sets.

Default: false
service_idstring · uuid · nullableOptional

Sets that one of this service's version sets pins.

limitinteger · max: 200OptionalDefault: 50
continuation_tokenanyOptional
Responses
200

Successful Response

application/json
has_morebooleanRequired
continuation_tokenanyOptional
get/v1/{workspace_id}/dynamic-behavior-sets
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
}

Create a dynamic behavior set

post
/v1/{workspace_id}/dynamic-behavior-sets

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.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
Body

A new set, written with its first version.

idstring · uuid · nullableOptional

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.

namestring · min: 1 · max: 120Required

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.

tagsstring[] · max: 10Optional

Labels for authors. They never reach a prompt.

Responses
201

Successful Response

application/json

A set in the library, without its versions.

idstring · uuidRequired
workspace_idstring · uuidRequired
namestringRequired
tagsstring[]Required
latest_versioninteger · min: 1Required
archived_atstring · date-time · nullableRequired

When it was archived. Null: not archived.

created_bystring · uuid · nullableRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
post/v1/{workspace_id}/dynamic-behavior-sets
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"
}

Get a dynamic behavior set

get
/v1/{workspace_id}/dynamic-behavior-sets/{set_id}

Retrieve a set, without its versions, with the number of its latest version. Requires DynamicBehaviorSet.view permission.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
set_idstring · uuidRequired
Responses
200

Successful Response

application/json

A set in the library, without its versions.

idstring · uuidRequired
workspace_idstring · uuidRequired
namestringRequired
tagsstring[]Required
latest_versioninteger · min: 1Required
archived_atstring · date-time · nullableRequired

When it was archived. Null: not archived.

created_bystring · uuid · nullableRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
get/v1/{workspace_id}/dynamic-behavior-sets/{set_id}
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"
}

Update a dynamic behavior set

patch
/v1/{workspace_id}/dynamic-behavior-sets/{set_id}

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.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
set_idstring · uuidRequired
Body

What can change on a set without a new version. A field left out stays as it is.

namestring · min: 1 · max: 120 · nullableOptional

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.

tagsstring[] · max: 10 · nullableOptional
archivedboolean · nullableOptional

True archives the set, which a version set that pins it refuses. False brings it back.

Responses
200

Successful Response

application/json

A set in the library, without its versions.

idstring · uuidRequired
workspace_idstring · uuidRequired
namestringRequired
tagsstring[]Required
latest_versioninteger · min: 1Required
archived_atstring · date-time · nullableRequired

When it was archived. Null: not archived.

created_bystring · uuid · nullableRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
patch/v1/{workspace_id}/dynamic-behavior-sets/{set_id}
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"
}

Get a dynamic behavior set's usage

get
/v1/{workspace_id}/dynamic-behavior-sets/{set_id}/usage

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.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
set_idstring · uuidRequired
Query parameters
limitinteger · max: 200OptionalDefault: 50
continuation_tokenanyOptional
Responses
200

Successful Response

application/json
has_morebooleanRequired
continuation_tokenanyOptional
get/v1/{workspace_id}/dynamic-behavior-sets/{set_id}/usage
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
}

List dynamic behavior set versions

get
/v1/{workspace_id}/dynamic-behavior-sets/{set_id}/versions

List a set's versions, newest first, with pagination. Requires DynamicBehaviorSet.view permission.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
set_idstring · uuidRequired
Query parameters
limitinteger · max: 100OptionalDefault: 20
continuation_tokenanyOptional
Responses
200

Successful Response

application/json
has_morebooleanRequired
continuation_tokenanyOptional
get/v1/{workspace_id}/dynamic-behavior-sets/{set_id}/versions
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
}

Create a dynamic behavior set version

post
/v1/{workspace_id}/dynamic-behavior-sets/{set_id}/versions

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.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
set_idstring · uuidRequired
Query parameters
expected_latest_versioninteger · min: 1 · max: 2147483647Required

The latest version this write was made from. When the set has a different latest version, the write is refused with 409.

Body

The next version of a set, or the first version of a new one.

conditionstring · min: 1 · max: 1000Required

When it applies, in terms of what the client wants or says. It describes the behavior to the selector.

examplesstring[] · max: 50Optional

Things a client says when it applies. The selector reads them; the reply never does.

instructionstring · min: 1 · max: 50000 · nullableOptional

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.

modestring · enumOptional

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.

Default: addPossible values:
sticky_turnsinteger · min: 1 · max: 5Optional

The fewest caller turns it stays in force once applied, counting the turn it was applied on.

Default: 1
notestring · max: 2000 · nullableOptional

What changed, for the people reading the set's history. It never reaches a prompt.

Responses
201

Successful Response

application/json

One version of a set, as it was written.

conditionstring · min: 1 · max: 1000Required

When it applies, in terms of what the client wants or says. It describes the behavior to the selector.

examplesstring[] · max: 50Optional

Things a client says when it applies. The selector reads them; the reply never does.

instructionstring · min: 1 · max: 50000 · nullableOptional

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.

modestring · enumOptional

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.

Default: addPossible values:
sticky_turnsinteger · min: 1 · max: 5Optional

The fewest caller turns it stays in force once applied, counting the turn it was applied on.

Default: 1
notestring · max: 2000 · nullableOptional

What changed, for the people reading the set's history. It never reaches a prompt.

set_idstring · uuidRequired
versioninteger · min: 1 · max: 2147483647Required
created_bystring · uuid · nullableRequired
created_atstring · date-timeRequired
post/v1/{workspace_id}/dynamic-behavior-sets/{set_id}/versions
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"
}

Get a dynamic behavior set version

get
/v1/{workspace_id}/dynamic-behavior-sets/{set_id}/versions/{version}

Retrieve one version of a set, as it was written. Requires DynamicBehaviorSet.view permission.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
set_idstring · uuidRequired
versioninteger · min: 1 · max: 2147483647Required
Responses
200

Successful Response

application/json

One version of a set, as it was written.

conditionstring · min: 1 · max: 1000Required

When it applies, in terms of what the client wants or says. It describes the behavior to the selector.

examplesstring[] · max: 50Optional

Things a client says when it applies. The selector reads them; the reply never does.

instructionstring · min: 1 · max: 50000 · nullableOptional

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.

modestring · enumOptional

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.

Default: addPossible values:
sticky_turnsinteger · min: 1 · max: 5Optional

The fewest caller turns it stays in force once applied, counting the turn it was applied on.

Default: 1
notestring · max: 2000 · nullableOptional

What changed, for the people reading the set's history. It never reaches a prompt.

set_idstring · uuidRequired
versioninteger · min: 1 · max: 2147483647Required
created_bystring · uuid · nullableRequired
created_atstring · date-timeRequired
get/v1/{workspace_id}/dynamic-behavior-sets/{set_id}/versions/{version}
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"
}

Last updated

Was this helpful?