Crescendo Lab Docs
English
Sign up

Platform API schemas

Every object Platform API v1 sends and accepts, field by field, including the run event stream (RunEvents) and the Error shape.

Last updated

Generated from the API contract (Agent Lab Platform API 1.0.0-alpha.1). Descriptions are the contract's own words.

Recovery#

What gets a refused request working again. Clients tolerate values added later.

TypeValues
stringOne of: authorize, configure, retry, none.

Error#

FieldTypeRequiredDescription
errorobjectyes—
error.codestringyesStable, UPPER_SNAKE_CASE. New codes may be added under an existing recovery.
error.messagestringyesFor the developer's logs; not for display to a person, and never parsed.
error.recoveryRecoveryyes—
error.requestIdstringyesQuote it when asking for support.
error.problemsProblem[]noWith RUN_CONFIGURATION_INVALID: every problem found, each with its field.

Page#

The page envelope every list answers, with its items beside it.

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.

AccountWorkspace#

FieldTypeRequiredDescription
idstringyes—
namestringyes—
slugstringyesThe workspace's short name, in its console address.
statestringyesdeletion_scheduled only in the list filtered by it. One of: active, deletion_scheduled.
rolestringnoThe person's role in the workspace, when known. Clients tolerate roles added later.
organizationobjectnoThe organization the workspace belongs to, once it is placed in one.
organization.idstringyes—
organization.namestringyes—
deletionEffectiveAtstring (date-time)noWhen a workspace scheduled for deletion is deleted; recoverable until then.

AccountWorkspaceList#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsAccountWorkspace[]yes—
creationobjectnoWhether the person may create another workspace; absent from the deletion_scheduled list.
creation.statusstringyesOne of: available, limit_reached.
creation.remaininginteger or nullnoWith available, how many more; null when there is no limit.
creation.limitintegernoWith limit_reached, the limit.

AccountWorkspaceCreate#

FieldTypeRequiredDescription
namestringyes—
slugstringyes—

WorkspaceAdmission#

FieldTypeRequiredDescription
statusstringyesOne of: reachable, realm_not_admitted, no_membership.
signInRealmsobject[]noWith realm_not_admitted, the entrances the workspace admits.
signInRealms[].idstringyes—
signInRealms[].kindstringyes—
signInRealms[].loginMethodsstring[]yes—

Installation#

FieldTypeRequiredDescription
idstringyes—
workspaceIdstringyes—
clientIdstringyesThe OAuth client id of the installed application.
applicationNamestringyes—
installedAtstring (date-time)yes—
grantedScopesstring[]yesWhat an administrator approved.
pendingScopesstring[]yesWhat the application declares beyond them, awaiting an administrator's approval.
tokenScopesstring[]yesWhat this token carries, and so what this call and the next ones with it may use.

WorkspaceMember#

FieldTypeRequiredDescription
accountIdstringyes—
rolestringyesThe member's role in the workspace. Clients tolerate roles added later.
capabilitiesstring[]yesWhat the role lets the member do in this workspace. Clients ignore names they do not know.

WorkspaceSettings#

FieldTypeRequiredDescription
defaultModelstringyesThe workspace's default model id; empty when it uses the platform's.
systemPromptstringyesThe instructions the workspace adds to every answer.
requireEvalBeforePublishbooleanyes—
monthlyTokenBudgetintegeryesTokens per calendar month; 0 keeps the platform's default.
rollingWindowTokenBudgetintegeryesTokens per rolling window; 0 keeps the platform's default.
disableAutoToolExecutionbooleanyesEvery tool call waits for a person's approval.
approvalChannelIdstringyesWhere approval requests are delivered; empty keeps them in the console.
localestringyesThe language of platform-written messages.
auditRetentionDaysinteger or nullyesNull keeps every audit record.
gatewayActivityRetentionDaysinteger or nullyesNull keeps every AI Gateway activity record.
sandboxPosturestringyes—
sandboxAvailablebooleanyesWhether this platform offers code execution to the workspace at all.
taskFocusedbooleanyes—
generalAssistantEnabledbooleanyes—
timeZonestringyesIANA time zone.

WorkspaceSettingsPatch#

The settings to change; each field left out keeps its value.

FieldTypeRequiredDescription
defaultModelstringnoA model id or capability profile the plan includes; empty uses the platform's default.
systemPromptstringno—
requireEvalBeforePublishbooleanno—
monthlyTokenBudgetintegerno—
rollingWindowTokenBudgetintegerno—
disableAutoToolExecutionbooleanno—
approvalChannelIdstringnoTrimmed, then at most 60 characters; empty keeps approvals in the console.
localestringnoOne of: en, zh-TW, zh-CN, ja, th.
auditRetentionDaysinteger or nullnoNull keeps every audit record.
gatewayActivityRetentionDaysinteger or nullnoNull keeps every AI Gateway activity record; a number deletes older records.
taskFocusedbooleanno—
generalAssistantEnabledbooleanno—
timeZonestringnoAn IANA time zone; empty uses the platform's.

InstructionVersion#

FieldTypeRequiredDescription
seqintegeryesThe version's number in the workspace, from 1.
systemPromptstringyes—
changedByAccountIdstring or nullyesThe member who set it; null for a version the platform wrote.
createdAtstring (date-time)yes—

InstructionVersionPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsInstructionVersion[]yes—

WorkspaceModule#

FieldTypeRequiredDescription
modulestringyesThe product (deployment, studio, aiRouting, channelSdk, apiGateway, or one added later).
enabledbooleanyes—
planstringyesThe product's plan (such as free).

WorkspaceModuleList#

FieldTypeRequiredDescription
itemsWorkspaceModule[]yes—

Team#

FieldTypeRequiredDescription
idstringyes—
namestringyes—
memberCountintegeryes—
createdAtstring (date-time)yes—
viewerRolestring or nullyesThe acting member's role in the team (manager or member); null when not on it.

TeamPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsTeam[]yes—
truncatedbooleanyesThe workspace has more teams than the platform lists.

Member#

FieldTypeRequiredDescription
accountIdstringyes—
emailstring or nullyes—
rolestringyes—
statusstringyes—
createdAtstring (date-time)yesWhen the membership began.

MemberPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsMember[]yes—
truncatedbooleanyesThe workspace has more members than the platform lists.

Model#

FieldTypeRequiredDescription
providerstringyes—
idstringyes—
displayNamestringyes—
isDefaultbooleanyesThe platform's default model.
entitledbooleanyesThe workspace's plan includes it; a run naming one it does not is refused.

ResolvedModel#

FieldTypeRequiredDescription
idstringyes—
entitledbooleanyes—

ModelCatalog#

FieldTypeRequiredDescription
itemsModel[]yes—
capabilityProfilesobject[]yesModel choices by capability rather than by name, such as agentlab/balanced.
capabilityProfiles[].idstringyes—
capabilityProfiles[].tierstringyes—
platformDefaultResolvedModelyes—
workspaceDefaultResolvedModelyes—

KnowledgeAudience#

Who may retrieve it: organization, every member; team, the named teams and the workspace's owners and administrators.

TypeValues
stringOne of: organization, team.

KnowledgeDocument#

FieldTypeRequiredDescription
idstringyes—
titlestringyes—
sourceTypestringyesmarkdown, text or pdf.
byteSizeintegeryes—
statusstringyesqueued, indexing, waiting_for_confirmation, waiting_for_allowance, ready or failed. Only a ready document contributes to answers. Clients tolerate values added later.
descriptionstringyesThe summary indexing wrote; empty until ready.
sectionCountintegeryes—
errorstring or nullyesWhy indexing failed, for the developer's logs.
failureCodestring or nullyesA stable reason for some failures, such as spend_cap_reached.
estimatedCostMicrosintegeryesIndexing's estimated cost, in millionths of a US dollar.
spendCapMicrosintegeryes—
audienceKnowledgeAudienceyes—
personalbooleanyesThe acting member's own document, which no one else sees.
createdAtstring (date-time)yes—

KnowledgeDocumentPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsKnowledgeDocument[]yes—

KnowledgeDocumentUpload#

FieldTypeRequiredDescription
titlestringyes—
sourceTypestringyesOne of: markdown, text, pdf.
contentstringyesThe text, or for pdf the file base64-encoded.
audienceKnowledgeAudienceno—
audienceTeamIdsstring (uuid)[]noWith audience: team, the teams it admits, by id.

KnowledgeQAEntry#

FieldTypeRequiredDescription
idstringyes—
questionstringyes—
answerstringyes—
audienceKnowledgeAudienceyes—
createdAtstring (date-time)yes—
updatedAtstring (date-time)yes—

KnowledgeQAPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsKnowledgeQAEntry[]yes—

KnowledgeQACreate#

FieldTypeRequiredDescription
questionstringyes—
answerstringyes—
audienceKnowledgeAudienceno—
audienceTeamIdsstring (uuid)[]noWith audience: team, the teams it admits, by id.

KnowledgeQAUpdate#

FieldTypeRequiredDescription
questionstringyes—
answerstringyes—

Channel#

FieldTypeRequiredDescription
idstringyes—
providerstringyesslack, line or teams. Clients tolerate values added later.
teamNamestringyesThe provider workspace or official account's name.
teamRefstringyesThe provider's own id for it.
statusstringyesconnected or revoked. Clients tolerate values added later.
scopeCoveragestringyesWhether the provider granted everything the platform asks for.
ambientReadinessstringyesWhether the platform can answer in it without being mentioned.
createdAtstring (date-time)yes—

ChannelPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsChannel[]yes—
truncatedbooleanyesThe workspace has more channels than the platform lists.

LineConnect#

A LINE official account's Messaging API credentials. Never answered.

FieldTypeRequiredDescription
channelSecretstringyes—
accessTokenstringyes—

LinePushBudget#

FieldTypeRequiredDescription
ceilingintegeryesPushes the workspace's LINE summaries may send each calendar month; 0 sends none.

ConnectLinkCreate#

FieldTypeRequiredDescription
redirectUristringyesWhere the browser returns, one of the application's registered redirect URIs.
FieldTypeRequiredDescription
urlstringyesOpen it in the acting member's browser, once.
expiresAtstring (date-time)yesAfter this the link connects nothing; ask for another.

EngagementPolicy#

FieldTypeRequiredDescription
channelRefstringyesThe provider's own id of the room.
modestringyesaddressed_only or ambient. Clients tolerate values added later.
standingOrdersstringnoWhat the assistant follows in this room; empty for none.

EngagementPolicyPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsEngagementPolicy[]yes—
truncatedbooleanyesThe channel has more policies than the platform lists.

ChannelIdentity#

FieldTypeRequiredDescription
idstringyes—
providerUserIdstringyesThe provider's own id of the user.
accountIdstringyesThe member it is bound to.
evidencestringyesWhat was verified when it was bound. Clients tolerate values added later.
createdAtstring (date-time)yes—

ChannelIdentityPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsChannelIdentity[]yes—
scopestringyesown, the acting member's binding only, or workspace, everyone's.
truncatedbooleanyesThe workspace has more bindings than the platform lists.

LineQuota#

FieldTypeRequiredDescription
knownbooleanyesLINE answered.
limitedbooleanyesThe official account's plan caps pushes per month.
limitintegeryes—
usedintegeryes—

Conversation#

FieldTypeRequiredDescription
idstringyes—
workspaceIdstringyes—
categorystringyesconversation, one a person started; background, one automation started; evaluation, an evaluation run's. Clients tolerate values added later.
channelbooleanyesHeld in a channel (Slack, LINE, Teams) rather than in Agent Lab.
agentRefstring or nullyesWhat it was held with, opaque, for grouping; not a resource of this API.
titlestringyesThe name a reader sees; the member's own name when they gave one.
customTitlestringyesThe member's own name for it; empty when they gave none.
archivedbooleanyes—
pinnedbooleanyes—
unseenbooleanyesIt holds a reply the acting member has not opened; only ever true for the member who started it.
updatedAtstring (date-time)yes—

ConversationPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsConversation[]yes—

ConversationMessage#

FieldTypeRequiredDescription
idstringyes—
rolestringyesuser or assistant. Clients tolerate values added later.
statusstringyespending while a reply is being written, completed or failed. Clients tolerate values added later.
contentstringyes—
refusalstring or nullyesWhat stopped this reply, as a stable code, such as budget. Clients tolerate values added later.
stoppedbooleanyesThe member stopped this reply; its content is what had been written.
attachmentsConversationAttachment[]yesThe files the member attached to this message; empty on a read by anyone but the member who started the conversation.
createdAtstring (date-time)yes—

ConversationDetail#

FieldTypeRequiredDescription
conversationConversationyes—
messagesConversationMessage[]yes—

ConversationStateChange#

Only what is sent changes. pinned and archived are never both true.

FieldTypeRequiredDescription
titlestringnoThe member's own name for it; empty clears it back to the generated one.
pinnedbooleanno—
archivedbooleannoArchiving also unpins it.
seenbooleannoThe member opened it. Nothing marks a conversation unread. One of: true.

ConversationAttachment#

FieldTypeRequiredDescription
idstringyes—
namestringyes—
sourceTypestringyesmarkdown, text or pdf. Clients tolerate values added later.
byteSizeintegeryes—
archivedbooleanyesArchived after the member who attached it left the workspace.

ConversationAttachmentContent#

FieldTypeRequiredDescription
idstringyes—
namestringyes—
sourceTypestringyesmarkdown, text or pdf. Clients tolerate values added later.
byteSizeintegeryes—
archivedbooleanyesArchived after the member who attached it left the workspace.
contentstringyesThe file as it was attached, base64-encoded.

ConversationAttachmentInventory#

FieldTypeRequiredDescription
itemsConversationAttachment[]yes—
uploaderActivebooleanyesThe member who started the conversation is still a member; until they leave, their files cannot be archived.

ConversationSearch#

FieldTypeRequiredDescription
itemsobject[]yes—
items[].conversationConversationyes—
items[].matchesintegeryesHow many of its messages matched; not what orders the list.
items[].snippetstringyesThe first matching message, clipped.
searchedintegeryesHow many conversations were searched.

ConversationSource#

FieldTypeRequiredDescription
kindstringyesschedule or trigger. Clients tolerate values added later.
idstringyes—
namestringnoIts name; absent once it has been deleted.

BackgroundConversation#

FieldTypeRequiredDescription
conversationConversationyes—
outcomestring or nullyesHow its run ended: succeeded, failed, refused or running; null when nobody recorded it. Clients tolerate values added later.
sourceConversationSource or nullyesWhat started it; null when it names nothing.
lastActivitystring (date-time)yes—

BackgroundConversationPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsBackgroundConversation[]yes—

BackgroundConversationSummary#

FieldTypeRequiredDescription
groupsobject[]yes—
groups[].sourceConversationSourceyes—
groups[].totalintegeryes—
groups[].succeededintegeryes—
groups[].failedintegeryes—
groups[].refusedintegeryes—
groups[].runningintegeryes—
groups[].unknownintegeryesRuns whose outcome nobody recorded.
groups[].lastFailureAtstring (date-time) or null (date-time)yesThe newest failed or refused run in the window.
unattributedCountintegeryes—
windowintegeryesHow many of the newest background conversations were counted.

BackgroundConversationUnseen#

FieldTypeRequiredDescription
countintegeryes—
windowintegeryesHow many of the member's newest background conversations were counted.

PendingAuthorizationList#

FieldTypeRequiredDescription
itemsobject[]yes—
items[].toolIdstringyes—
items[].namestringyes—
items[].descriptionstringyes—

McpCatalogEntry#

FieldTypeRequiredDescription
idstringyes—
scopestringyesplatform (the platform's own) or workspace (the workspace registered it). Clients tolerate values added later.
namestringyes—
urlstringyesThe connector's MCP server.
authTypestringyesHow a connection authenticates: none, static_bearer, client_credentials or oauth (in the browser, through POST …/mcp/connections). Clients tolerate values added later.
descriptionstringyes—
statusstringyesenabled, disabled or deprecated. Clients tolerate values added later.
healthstringyesunknown, healthy or unhealthy. Clients tolerate values added later.
lastErrorstring or nullyesWhy the last health check failed; null when it did not, or for a member who may not manage connections.
toolsOmittedintegeryesTools the server exposed beyond what the platform keeps.

McpCatalog#

FieldTypeRequiredDescription
itemsMcpCatalogEntry[]yes—
truncatedbooleanyesThe workspace has more connectors than the platform lists.

McpConnection#

One identity connected to a connector. Its credential is never answered.

FieldTypeRequiredDescription
idstringyes—
catalogEntryIdstringyes—
scopestringyesworkspace (shared by everyone) or member (one member's own). Clients tolerate values added later.
labelstring or nullyesNames one of several shared identities of a connector.
authTypestringyesAs the connector's authType.
statusstringyesconnected, needs_reauth (connect again with POST …/mcp/connections) or revoked. Clients tolerate values added later.
ownedByMebooleanyesIt is the acting member's own.
delegationModestringyesWhose permission applies at the connector, in the platform's delegation taxonomy. Clients tolerate values added later.
appliesMemberPermissionbooleanyesCalls act with the member's own permission at the connector.
credentialExpiresbooleanyesThe credential is short-lived and renewed.
outputPolicystringyesWho may read what its calls answer: inherit, workspace or personal. Clients tolerate values added later.

McpConnectionPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsMcpConnection[]yes—

McpConnectionCreate#

FieldTypeRequiredDescription
catalogEntryIdstringyesThe connector, one the workspace registered.
scopestringyesShared by everyone, or the acting member's own. One of: workspace, member.
labelstringnoNames one of several shared identities; only with workspace.
redirectUristringyesWhere the browser returns, one of the application's registered redirect URIs.

McpTool#

FieldTypeRequiredDescription
namestringyes—
descriptionstringyes—
serverDeclaredReadOnlyboolean or nullyesThe server's own claim, null when it makes none; it never lowers the approval bar.
workspaceReadOnlyboolean or nullyesThe workspace's own declaration, null when it made none; this, never the server's claim, decides whether a call waits for approval.

McpToolList#

FieldTypeRequiredDescription
itemsMcpTool[]yes—

ToolCredential#

The identity a tool presents. The credential itself is never answered.

FieldTypeRequiredDescription
idstringyes—
toolIdstringyes—
scopestringyesworkspace (shared by everyone) or member (one member's own). Clients tolerate values added later.
ownedByMebooleanyesIt is the acting member's own.
delegationModestringyesWhose permission applies downstream, in the platform's delegation taxonomy. Clients tolerate values added later.
appliesMemberPermissionbooleanyes—
credentialExpiresbooleanyes—
statusstringyesconnected or revoked. Clients tolerate values added later.

ToolCredentialList#

FieldTypeRequiredDescription
itemsToolCredential[]yes—
truncatedbooleanyesThe workspace has more tool credentials than the platform lists.

ToolCredentialCreate#

FieldTypeRequiredDescription
toolIdstringyes—
tokenstringyesThe credential the tool presents. Never answered.

OAuthError#

FieldTypeRequiredDescription
errorstringyes—
error_descriptionstringno—

LegacyErrorString#

The body these operations answered before this document; kept within v1.

FieldTypeRequiredDescription
errorstringyes—

LegacyErrorCode#

The body this operation answered before this document; kept within v1.

FieldTypeRequiredDescription
errorobjectyes—
error.codestringyes—

TokenRequest#

FieldTypeRequiredDescription
grant_typestringyesOne of: authorization_code, refresh_token, client_credentials.
codestringno—
code_verifierstringno—
client_idstringno—
client_secretstringnoclient_secret_post; a workspace application's secret.
redirect_uristringno—
resourcestringno—
refresh_tokenstringno—
installation_idstringnoclient_credentials: the installation, by id.
workspace_idstringnoclient_credentials: the installation, by the workspace it is in.
scopestringnoclient_credentials: install or absent.

TokenResponse#

FieldTypeRequiredDescription
access_tokenstringyes—
token_typestringyesOne of: Bearer.
expires_inintegeryesSeconds.
refresh_tokenstringno—
scopestringyesSpace-separated.
id_tokenstringnoPresent when openid was granted to an operators' own application.

InstallationTokenResponse#

An installation token (client_credentials).

FieldTypeRequiredDescription
access_tokenstringyes—
token_typestringyesOne of: Bearer.
expires_inintegeryesSeconds.
scopestringyes—
installation_idstringyes—
workspace_idstringyes—

InstallResult#

An install request's code answers where the application was installed, and no token.

FieldTypeRequiredDescription
installation_idstringyes—
workspace_idstringyes—
scopestringyes—

Introspection#

FieldTypeRequiredDescription
activebooleanyes—
substringnoThe account id.
client_idstringno—
scopestringnoSpace-separated.
expintegernoUnix seconds.
audstringno—
issstringno—
token_typestringnoOne of: Bearer.
workspace_idstringnoAn installation token names its workspace.

UserInfo#

FieldTypeRequiredDescription
substringyes—
workspace_idstringyes—
workspace_slugstringno—
workspace_namestringno—
emailstringno—
email_verifiedbooleanno—
namestringno—

OpenIDConfiguration#

FieldTypeRequiredDescription
issuerstringyes—
authorization_endpointstringyes—
token_endpointstringyes—
userinfo_endpointstringyes—
revocation_endpointstringno—
introspection_endpointstringno—
jwks_uristringyes—
response_types_supportedstring[]yes—
grant_types_supportedstring[]no—
subject_types_supportedstring[]yes—
id_token_signing_alg_values_supportedstring[]yes—
code_challenge_methods_supportedstring[]no—
token_endpoint_auth_methods_supportedstring[]no—
introspection_endpoint_auth_methods_supportedstring[]no—
scopes_supportedstring[]no—
claims_supportedstring[]no—

AuthorizationServerMetadata#

FieldTypeRequiredDescription
issuerstringyes—
authorization_endpointstringyes—
token_endpointstringyes—
revocation_endpointstringno—
registration_endpointstringno—
response_types_supportedstring[]yes—
grant_types_supportedstring[]no—
code_challenge_methods_supportedstring[]no—
token_endpoint_auth_methods_supportedstring[]no—
scopes_supportedstring[]no—
client_id_metadata_document_supportedbooleanno—

SdkEventVerificationKey#

FieldTypeRequiredDescription
versionstringyesagentlab-sdk-event-v1-ed25519.
keyIdstringyes—
algorithmstringyesOne of: Ed25519.
publicKeystringyesbase64url, no padding.

SdkReply#

FieldTypeRequiredDescription
versionstringyesOne of: sdk-event/v1.
correlationIdstring (uuid)yesThe delivered event's correlationId.
contentstringyesThe answer's text; not blank.

Problem#

FieldTypeRequiredDescription
fieldstringyesThe request's JSON path to the value, such as agent.skills[0].name.
reasonstringyesFor the developer; not for display to a person, and never parsed.

RunCreate#

FieldTypeRequiredDescription
conversationIdstring (uuid)noA run conversation of this member and installation to continue; omitted starts a new one.
agentAgentConfigyes—
inputRunInputMessage[]yesThe member's message.
backgroundbooleannoAn automation with no reader waiting; not streamed. Default: false.
replyToobjectno—
replyTo.eventIdstring (uuid)yesThe eventId of an sdk-event/v1 event delivered to this installation's application, accepted and not yet answered, that no other run answers (a run that failed, was cancelled or could not deliver no longer does).
metadataRunMetadatano—

EvaluationRunCreate#

FieldTypeRequiredDescription
agentAgentConfigyes—
casesEvaluationCase[]yesThe cases to ask, each with an id no other case of the run has.

EvaluationCase#

FieldTypeRequiredDescription
idstringyesThe application's own id for the case, echoed back with its result; no surrounding spaces.
titlestringnoA name for the case; omitted, the start of its question.
inputRunInputMessage[]yesThe member's message the case asks; at most 1000 characters in all.
expectationsEvaluationExpectationsyes—
weightintegernoWhat the case counts for beside the others. Default: 1.

EvaluationExpectations#

FieldTypeRequiredDescription
rubricstringyesWhat a good answer does, which the platform's judge reads; no surrounding spaces.
requiredToolsstring[]noTools the answer must have used successfully, by name. Each name at most 120 bytes in UTF-8, listed once, no surrounding spaces.
forbiddenToolsstring[]noTools the answer must not reach for at all, by name; none also required. Each name at most 120 bytes in UTF-8, listed once, no surrounding spaces.
groundingRequiredbooleannoThe answer must rest on the configuration's knowledge. Default: false.
mustContainstring[]noPhrases every one of which the answer's text must contain, checked without the judge: a missing phrase fails the case whatever the judge thinks. Compared after Unicode case folding, NFC and collapsing every run of whitespace to one space, as a substring (not a word). Each phrase listed once in that form, no surrounding spaces.
mustNotContainstring[]noPhrases none of which the answer's text may contain, compared as mustContain is; a phrase found fails the case whatever the judge thinks. None may sit inside a mustContain phrase. Each phrase listed once in that form, no surrounding spaces.

EvaluationRun#

FieldTypeRequiredDescription
idstringyes—
statusstringyesrunning, completed (every case answered and judged) or failed (reason says why). Clients tolerate values added later. One of: running, completed, failed.
reasonstring or nullyesWhy the run failed; null otherwise.
passedintegeryesCases judged so far that passed.
failedintegeryesCases judged so far that did not pass, an error verdict included.
casesEvaluationCaseResult[]yes—
createdAtstring (date-time)yesWhen the run started; on the 202, when the start was answered, which may differ by a moment.
completedAtstring (date-time) or null (date-time)yes—

EvaluationCaseResult#

FieldTypeRequiredDescription
idstringyesThe case's id as the application sent it.
resultnull or EvaluationVerdictyesThe answer and the judge's verdict; null until the case is answered and judged.

EvaluationVerdict#

FieldTypeRequiredDescription
verdictstringyespass, fail, or error (the case could not be answered or judged). Clients tolerate values added later. One of: pass, fail, error.
outputstringyesThe answer's text.
rationalestringyesThe judge's reasoning, or why the case could not be answered.
refusalstring or nullyesWhich limit refused the answer, when the verdict is error for that reason.
modelstringyesThe model that answered; empty when none did.
durationMsintegeryesHow long the answer took; 0 when not recorded.
toolCallsobject[]yesThe tools the answer reached for, in order, and how each call ended.
toolCalls[].namestringyes—
toolCalls[].statusstringyesHow the call ended (succeeded, failed, rejected for a call declined because it waited for a person, refused). Clients tolerate values added later.
weightintegeryesWhat the case counted for; 0 when not recorded.
phraseFailuresobject[]yesEvery mustContain phrase the answer's text lacks and every mustNotContain phrase it has, as the application sent it, whatever else decided the verdict; empty when the verdict is error or every phrase held.
phraseFailures[].expectationstringyesmustContain or mustNotContain: the list the phrase came from. One of: mustContain, mustNotContain.
phraseFailures[].phrasestringyes—

DeploymentCreate#

FieldTypeRequiredDescription
entryKindstringyesslack, slack_channel or line; values may be added later.
entryRefstringyesThe entry point in the channel's own terms, as createDeployment describes.
agentAgentConfigno—

DeployedAgentReplace#

FieldTypeRequiredDescription
agentAgentConfigyes—
expectedRevisionintegeryesThe revision this replaces, as the deployment answered it; 0 for the first.

DeployedAgent#

FieldTypeRequiredDescription
agentRefstring or nullyesThe deployed configuration's ref, null when it named none.
revisionintegeryesCounts the configurations deployed to this entry; the next replacement names it.
deployedAtstring (date-time)yes—

Deployment#

FieldTypeRequiredDescription
idstringyes—
entryKindstringyes—
entryRefstringyes—
statusstringyesactive or disabled; clients tolerate values added later.
responderstringyesapplication, a registered application answers the entry; agent, an assistant the console deployed. Clients tolerate values added later.
applicationIdstring or nullyesThe registered application that answers the entry, null for an assistant.
thisApplicationbooleanyesThe calling installation's application answers the entry.
agentDeployedAgent or nullyesThe entry's deployed configuration, which the platform answers its events with; null when its events are delivered to the application, or the entry is not an application's. A first PUT …/agent names expectedRevision: 0.
createdAtstring (date-time)yes—

DeploymentPage#

FieldTypeRequiredDescription
nextCursorstring or nullnoAbsent or null on the last page.
itemsDeployment[]yes—

RunMetadata#

The application's own values, kept with the run and answered back; never interpreted.

TypeValues
object—

AgentConfig#

The agent, passed with every run. The platform keeps it with the run and stores no agent.

FieldTypeRequiredDescription
refstringnoThe application's own id for the agent and its version, opaque to the platform; answered back as agentRef.
namestringyes—
instructionsstringyes—
modelstringyes"auto" for the workspace's default, or a model the workspace may use (GET …/models).
skillsInlineSkill[]noStanding instructions sent with the agent's, in order; together at most 6000 characters with their headings.
toolsRunTool[]noThe tools the agent may call, and nothing else: no platform tools, no member's own connections beyond those named. Each runs under the platform's tool authority, bound to this configuration: a call approved under it never runs under another.
knowledgeRunKnowledgeno—

RunTool#

type: "mcp": the tools of an MCP connection, by connectionId — the member's own, or an organization-shared one when the member's role may manage connections — narrowed by allowedTools (left out: every tool its server offers); approval is "always", a person approves every call. type: "http": an HTTPS action the configuration defines, presenting no credential: name, description, inputSchema (a JSON Schema object), url, method; approval: "never" lets a GET run unattended when the workspace allows it. A field of the other type is refused.

FieldTypeRequiredDescription
typestringyesOne of: mcp, http.
connectionIdstringno—
allowedToolsstring[]no—
approvalstringyesOne of: always, never.
namestringno—
descriptionstringno—
inputSchemaobjectno—
urlstringno—
methodstringnoOne of: GET, POST.

RunKnowledge#

What the agent answers from. scope: "listed" (the default) retrieves from the documents and Q&A entries listed; "workspace" from everything in the workspace the member may read. The member's team audience filters either.

contextProvider: "self" asks the calling application instead, on every turn: the platform sends a signed context-provider/v1 request to the context endpoint the application's registration publishes, and writes what it answers into the turn as it writes its own knowledge. It is the answer's only knowledge, so it is refused beside documentIds, qaIds or scope: "workspace"; and it is refused before the run starts when the installation is not granted context:provide or the registration publishes no context endpoint. A turn whose request fails (timeout, error, invalid answer, the installation revoked since) is answered without knowledge, and nothing is recorded as its grounding.

FieldTypeRequiredDescription
documentIdsstring[]no—
qaIdsstring[]noEvery listed entry the member may read is sent with each answer.
scopestringnoOne of: listed, workspace.
contextProviderstringnoOne of: self.

InlineSkill#

FieldTypeRequiredDescription
namestringyes—
instructionsstringyes—

RunInputMessage#

FieldTypeRequiredDescription
rolestringyesOne of: user.
contentRunTextPart[]yesText parts, joined with a blank line; at most 4000 characters in all.

RunTextPart#

FieldTypeRequiredDescription
typestringyesOne of: text.
textstringyes—

Run#

FieldTypeRequiredDescription
idstringyes—
conversationIdstringyes—
statusstringyesqueued, running, requires_action (a tool call waits for approval), completed, failed (cancelled says whether it was stopped), or refused (a limit refused the answer; refusal says which). Clients tolerate values added later. One of: queued, running, requires_action, completed, failed, refused.
agentRefstring or nullyesThe configuration's ref; null when it had none.
outputRunOutputMessage[] or nullyesThe answer, when completed.
refusalstring or nullyesWhich limit refused the answer, when refused.
metadataRunMetadatano—
backgroundbooleanno—
cancelledbooleannoThe run was stopped (POST …/runs/{runId}/cancel) before it finished; its status is failed.
replyToobject or nullnoThe event the run answers, when it was started with replyTo.
replyTo.eventIdstringyes—
replyTo.deliverystringyespending until the run settles; delivered; or not_delivered, the run did not complete or the event could no longer be answered (the application may still answer it with POST /v1/sdk/replies). Clients tolerate values added later. One of: pending, delivered, not_delivered.
requiredActionnull or RunRequiredActionnoWhat the run waits on, when requires_action; else null.
createdAtstring (date-time)yes—

RunEvents#

Server-sent events, each event: <name> and one data: line of JSON:

  • run: the whole Run; first, whenever its status changes, and last when it settles.
  • output_text.delta: {"delta": string}, text the answer gained while running. The settled run event carries the whole answer.
  • error: an Error; the run could not be read, and the stream ends.

Lines starting with : keep the connection open. The stream ends when the run settles, or after ten minutes; read or stream the run again with GET …/runs/{runId}. A streamed POST under Idempotency-Key keeps the events written before the stream ended, and a retry replays exactly those; read the run with GET for where it stands.

TypeValues
string—

RunRequiredAction#

FieldTypeRequiredDescription
toolApprovalsToolApproval[]yes—

ToolApproval#

FieldTypeRequiredDescription
idstringyes—
namestringyesThe tool, as the agent called it (an MCP tool's name is prefixed mcp__).
argumentsobjectyesWhat the agent passed.
readOnlyboolean or nullyesThe risk the workspace declared for this tool: true read-only, false writing, null undeclared (approved as destructive).
reasonstring or nullyesWhy the call waits for a person beyond the configuration asking, when there is one.
createdAtstring (date-time)yes—

ToolApprovalDecision#

FieldTypeRequiredDescription
decisionstringyesOne of: approve, reject.

RunOutputMessage#

FieldTypeRequiredDescription
rolestringyesOne of: assistant.
contentobject[]yes—
content[].typestringyesOne of: text.
content[].textstringyes—

UsageReport#

FieldTypeRequiredDescription
sinceDaysintegeryesThe window the report covers, in days.
itemsAgentRefUsage[]yes—
truncatedbooleanyesThere are more groups than the report lists.

AgentRefUsage#

FieldTypeRequiredDescription
agentRefstring or nullyesThe configuration's ref; null for configurations passed without one.
kindstringyesrun or evaluation. Clients tolerate values added later.
turnsintegeryesReplies answered.
modelCallsintegeryesModel calls made for those replies; a reply that calls tools makes several.
inputTokensintegeryesInput tokens charged at the full rate (not read from or written to a cache).
outputTokensintegeryes—
cachedReadTokensintegeryes—
cacheWriteTokensintegeryes—
costnull or UsageCostyesWhat it cost at the workspace's prices; null for a member who may not read cost.

UsageCost#

FieldTypeRequiredDescription
amountUsdnumberyes—
pricingCompletebooleanyesEvery model was priced at the workspace's prices. When false, the models in unpricedModels are counted at the platform's list price where it has one.
unpricedModelsstring[]yes—

MemoryFact#

FieldTypeRequiredDescription
idstringyes—
kindstringyesstanding or episodic. Clients tolerate values added later.
bodystringyesOne sentence, at most 1000 characters.
sourceLabelstringyesWhere it was learned, as the console names it.
sourceTrustedbooleanyes—
explicitbooleanyesSomeone stated it deliberately, rather than an assistant inferring it.
organizationWidebooleanyes—
capturedAtstring (date-time)yes—

MemoryRevision#

FieldTypeRequiredDescription
idstringyes—
opstringyesWhat the line records, such as edit or delete. Clients tolerate values added later.
bodystringyes—
authorAccountIdstring or nullyesThe member who made the change; null when an assistant made it.
atstring (date-time)yes—

MemoryNotebook#

FieldTypeRequiredDescription
standingMemoryFact[]yes—
episodicMemoryFact[]yes—
historyMemoryRevision[]yesThe 50 newest history lines, newest first.
historyTruncatedbooleanyes—

MemoryFactEdit#

FieldTypeRequiredDescription
expectedBodystringyesThe fact's sentence as last read.
bodystringyes—

TranscriptionCreate#

FieldTypeRequiredDescription
audiostringyesA mono 16 kHz 16-bit PCM WAV of at most two minutes, base64-encoded.

Transcription#

FieldTypeRequiredDescription
textstringyes—

OutreachSend#

FieldTypeRequiredDescription
targetUserRefstringnoA person, by their Slack user id. Exactly one of this and targetChannelRef.
targetChannelRefstringnoA channel, by its Slack id. Exactly one of this and targetUserRef.
bodystringyesThe message, at most 4000 characters.
reasonstringyesWhy it is sent, at most 300 characters; kept with the message.

OutreachMessage#

FieldTypeRequiredDescription
idstringyes—
channelIdstringyesThe channel it was sent through.
targetRefstringyesThe Slack conversation it was posted to (a direct message's, for a person).
bodystringyes—
reasonstringyes—
statusstringyespending, sent, abandoned or unknown. Clients tolerate values added later.
attemptsintegeryes—
lastErrorstringyesWhy the latest attempt failed; empty when none did.
createdAtstring (date-time)yes—

OutreachList#

FieldTypeRequiredDescription
itemsOutreachMessage[]yes—
truncatedbooleanyesThe member has older sends in the workspace than the 50 that were read.

Gateway#

FieldTypeRequiredDescription
enabledbooleanyes—
operatorDisabledbooleanyesAgent Lab turned the Gateway off for this workspace.
plannull or GatewayPlanyesNull while the Gateway is off, and for a member who may not read usage.

GatewayPlan#

FieldTypeRequiredDescription
planstringyesThe plan's name. Clients tolerate values added later.
sourcestringyesWhere the plan comes from. Clients tolerate values added later.
includedRequestsinteger or nullyesThe requests the plan includes this month; null when it does not limit them.
usedRequestsinteger or nullyesThe requests made this month; null when they are not counted.
periodStartstring (date-time)yes—
periodEndstring (date-time)yes—
asOfstring (date-time)yes—
spendCapUsdnumber or nullyesThe plan's model-spend ceiling; null without one.
spentUsdnumber or nullyesAll Gateway spend the workspace made; null when some of it has no price.
creditnull or GatewayCredityesThe prepaid credit; null before the first credit.

GatewayCredit#

FieldTypeRequiredDescription
creditedUsdnumberyesEvery top-up, contract credit and redeemed code.
spentUsdnumber or nullyesWhat was drawn from it; null when some spend has no price.
balanceUsdnumber or nullyesWhat is left; null when the spend is not known.