Skip to main content
POST
Create a Copilot Config

Authorizations

X-API-Key
string
header
required

Supply the API Key in the HTTP-Header

Headers

Accept
enum<string>

The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.

Available options:
application/json,
application/hal+json,
application/xml,
text/xml,
text/csv

Body

application/json

The workspace JSON. Create and re-save take the same body - the only difference is whether an id is supplied - so a rule added to one cannot drift from the other. Ownership (organisation, createdBy, lastChangedBy) is established from the session, never from here.

name
string
required

Required, and required after trimming - a name of spaces is not a name.

layoutMode
enum<string>
required

single is readable but cannot be saved.

Available options:
grid,
hybrid
space
object
required

How much room the Copilot has in the agent's workspace.

widgets
object[]
required

At least one widget - the other half of the save gate, alongside a name.

projectId
string
required
Required string length: 24
Pattern: ^[a-z0-9]{24}$
description
string

Response

Returns the stored Copilot config object.

_id
string<mongoId>

The object id of the Copilot config

name
string

The name of the Copilot config

description
string

The description of the Copilot config

referenceId
string<uuid>

The referenceId of the Copilot config

projectReference
string<mongoId>

The id of the project the Copilot config belongs to

organisationReference
string

The id of the organisation the Copilot config belongs to

createdAt
integer

Unix timestamp (seconds) of when the Copilot config was created

lastChanged
integer

Unix timestamp (seconds) of when the Copilot config was last changed

createdBy
string

The id of the user who created the Copilot config

lastChangedBy
string

The id of the user who last changed the Copilot config

layoutMode
enum<string>

The layout mode of the Copilot config

Available options:
grid,
hybrid,
single
space
object

How much room the Copilot has in the agent's workspace.

widgets
object[]

Always an array, never null, even when empty.

hasEverSaved
boolean

True once a save has succeeded at least once. Not the same as published — publishing is asynchronous, so a config is routinely saved while still unpublished.

published
boolean

Whether the Copilot config is published

publication
object | null

The last completed deploy, or null if none has finished.

Last modified on September 30, 2026