Skip to main content
GET
Open a test session against a deployed Copilot

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

Path Parameters

copilotConfigId
string
required

The unique identifier for the Copilot config.

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

Query Parameters

projectId
string
required

The unique identifier for the Project. Copilot configs are always scoped to a single Project.

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

Response

Returns a test session.

One test contact against a deployed Copilot. Every call mints a NEW userId/sessionId pair - this is "open", not "read" - and hands out the endpoint's urlToken, which no other Copilot config response carries. There is no transport of Cognigy's own here: both the socket (opened with this response's socket block) and the Agent Copilot workspace iframe (opened at workspaceUrl) talk to the endpoint host directly with the same ids.

endpointUrl
string

The deployed endpoint's own address, for display and as a REST fallback.

urlToken
string

The endpoint's address token.

userId
string
sessionId
string
workspaceUrl
string

The Agent Copilot workspace, already carrying this session's ids - the iframe's src exactly as given.

socket
object

Where the Review screen opens its socket, and what with.

flows
object[]

What the last deploy built. Empty for a Copilot deployed before this was recorded.

publishedAt
integer

Unix timestamp in seconds, matching the config's publication.

Last modified on October 12, 2026