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 2026-12-05
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.
Type Values stringOne of: authorize, configure, retry, none.
Error#
Field Type Required Description errorobjectyes — error.codestringyes Stable, UPPER_SNAKE_CASE. New codes may be added under an existing recovery. error.messagestringyes For the developer's logs; not for display to a person, and never parsed. error.recoveryRecovery yes — error.requestIdstringyes Quote it when asking for support. error.problemsProblem []no With RUN_CONFIGURATION_INVALID: every problem found, each with its field.
Page#
The page envelope every list answers, with its items beside it.
Field Type Required Description nextCursorstring or nullno Absent or null on the last page.
AccountWorkspace#
Field Type Required Description idstringyes — namestringyes — slugstringyes The workspace's short name, in its console address. statestringyes deletion_scheduled only in the list filtered by it. One of: active, deletion_scheduled.rolestringno The person's role in the workspace, when known. Clients tolerate roles added later. organizationobjectno The organization the workspace belongs to, once it is placed in one. organization.idstringyes — organization.namestringyes — deletionEffectiveAtstring (date-time)no When a workspace scheduled for deletion is deleted; recoverable until then.
AccountWorkspaceList#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsAccountWorkspace []yes — creationobjectno Whether the person may create another workspace; absent from the deletion_scheduled list. creation.statusstringyes One of: available, limit_reached. creation.remaininginteger or nullno With available, how many more; null when there is no limit. creation.limitintegerno With limit_reached, the limit.
AccountWorkspaceCreate#
Field Type Required Description namestringyes — slugstringyes —
WorkspaceAdmission#
Field Type Required Description statusstringyes One of: reachable, realm_not_admitted, no_membership. signInRealmsobject[]no With realm_not_admitted, the entrances the workspace admits. signInRealms[].idstringyes — signInRealms[].kindstringyes — signInRealms[].loginMethodsstring[]yes —
Installation#
Field Type Required Description idstringyes — workspaceIdstringyes — clientIdstringyes The OAuth client id of the installed application. applicationNamestringyes — installedAtstring (date-time)yes — grantedScopesstring[]yes What an administrator approved. pendingScopesstring[]yes What the application declares beyond them, awaiting an administrator's approval. tokenScopesstring[]yes What this token carries, and so what this call and the next ones with it may use.
WorkspaceMember#
Field Type Required Description accountIdstringyes — rolestringyes The member's role in the workspace. Clients tolerate roles added later. capabilitiesstring[]yes What the role lets the member do in this workspace. Clients ignore names they do not know.
WorkspaceSettings#
Field Type Required Description defaultModelstringyes The workspace's default model id; empty when it uses the platform's. systemPromptstringyes The instructions the workspace adds to every answer. requireEvalBeforePublishbooleanyes — monthlyTokenBudgetintegeryes Tokens per calendar month; 0 keeps the platform's default. rollingWindowTokenBudgetintegeryes Tokens per rolling window; 0 keeps the platform's default. disableAutoToolExecutionbooleanyes Every tool call waits for a person's approval. approvalChannelIdstringyes Where approval requests are delivered; empty keeps them in the console. localestringyes The language of platform-written messages. auditRetentionDaysinteger or nullyes Null keeps every audit record. gatewayActivityRetentionDaysinteger or nullyes Null keeps every AI Gateway activity record. sandboxPosturestringyes — sandboxAvailablebooleanyes Whether this platform offers code execution to the workspace at all. taskFocusedbooleanyes — generalAssistantEnabledbooleanyes — timeZonestringyes IANA time zone.
WorkspaceSettingsPatch#
The settings to change; each field left out keeps its value.
Field Type Required Description defaultModelstringno A model id or capability profile the plan includes; empty uses the platform's default. systemPromptstringno — requireEvalBeforePublishbooleanno — monthlyTokenBudgetintegerno — rollingWindowTokenBudgetintegerno — disableAutoToolExecutionbooleanno — approvalChannelIdstringno Trimmed, then at most 60 characters; empty keeps approvals in the console. localestringno One of: en, zh-TW, zh-CN, ja, th. auditRetentionDaysinteger or nullno Null keeps every audit record. gatewayActivityRetentionDaysinteger or nullno Null keeps every AI Gateway activity record; a number deletes older records. taskFocusedbooleanno — generalAssistantEnabledbooleanno — timeZonestringno An IANA time zone; empty uses the platform's.
InstructionVersion#
Field Type Required Description seqintegeryes The version's number in the workspace, from 1. systemPromptstringyes — changedByAccountIdstring or nullyes The member who set it; null for a version the platform wrote. createdAtstring (date-time)yes —
InstructionVersionPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsInstructionVersion []yes —
WorkspaceModule#
Field Type Required Description modulestringyes The product (deployment, studio, aiRouting, channelSdk, apiGateway, or one added later). enabledbooleanyes — planstringyes The product's plan (such as free).
WorkspaceModuleList#
Team#
Field Type Required Description idstringyes — namestringyes — memberCountintegeryes — createdAtstring (date-time)yes — viewerRolestring or nullyes The acting member's role in the team (manager or member); null when not on it.
TeamPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsTeam []yes — truncatedbooleanyes The workspace has more teams than the platform lists.
Member#
Field Type Required Description accountIdstringyes — emailstring or nullyes — rolestringyes — statusstringyes — createdAtstring (date-time)yes When the membership began.
MemberPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsMember []yes — truncatedbooleanyes The workspace has more members than the platform lists.
Model#
Field Type Required Description providerstringyes — idstringyes — displayNamestringyes — isDefaultbooleanyes The platform's default model. entitledbooleanyes The workspace's plan includes it; a run naming one it does not is refused.
ResolvedModel#
Field Type Required Description idstringyes — entitledbooleanyes —
ModelCatalog#
Field Type Required Description itemsModel []yes — capabilityProfilesobject[]yes Model choices by capability rather than by name, such as agentlab/balanced. capabilityProfiles[].idstringyes — capabilityProfiles[].tierstringyes — platformDefaultResolvedModel yes — workspaceDefaultResolvedModel yes —
KnowledgeAudience#
Who may retrieve it: organization, every member; team, the named teams and the workspace's owners and administrators.
Type Values stringOne of: organization, team.
KnowledgeDocument#
Field Type Required Description idstringyes — titlestringyes — sourceTypestringyes markdown, text or pdf.byteSizeintegeryes — statusstringyes queued, indexing, waiting_for_confirmation, waiting_for_allowance, ready or failed. Only a ready document contributes to answers. Clients tolerate values added later.descriptionstringyes The summary indexing wrote; empty until ready. sectionCountintegeryes — errorstring or nullyes Why indexing failed, for the developer's logs. failureCodestring or nullyes A stable reason for some failures, such as spend_cap_reached. estimatedCostMicrosintegeryes Indexing's estimated cost, in millionths of a US dollar. spendCapMicrosintegeryes — audienceKnowledgeAudience yes — personalbooleanyes The acting member's own document, which no one else sees. createdAtstring (date-time)yes —
KnowledgeDocumentPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsKnowledgeDocument []yes —
KnowledgeDocumentUpload#
Field Type Required Description titlestringyes — sourceTypestringyes One of: markdown, text, pdf. contentstringyes The text, or for pdf the file base64-encoded. audienceKnowledgeAudience no — audienceTeamIdsstring (uuid)[]no With audience: team, the teams it admits, by id.
KnowledgeQAEntry#
Field Type Required Description idstringyes — questionstringyes — answerstringyes — audienceKnowledgeAudience yes — createdAtstring (date-time)yes — updatedAtstring (date-time)yes —
KnowledgeQAPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsKnowledgeQAEntry []yes —
KnowledgeQACreate#
Field Type Required Description questionstringyes — answerstringyes — audienceKnowledgeAudience no — audienceTeamIdsstring (uuid)[]no With audience: team, the teams it admits, by id.
KnowledgeQAUpdate#
Field Type Required Description questionstringyes — answerstringyes —
Channel#
Field Type Required Description idstringyes — providerstringyes slack, line or teams. Clients tolerate values added later.teamNamestringyes The provider workspace or official account's name. teamRefstringyes The provider's own id for it. statusstringyes connected or revoked. Clients tolerate values added later.scopeCoveragestringyes Whether the provider granted everything the platform asks for. ambientReadinessstringyes Whether the platform can answer in it without being mentioned. createdAtstring (date-time)yes —
ChannelPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsChannel []yes — truncatedbooleanyes The workspace has more channels than the platform lists.
LineConnect#
A LINE official account's Messaging API credentials. Never answered.
Field Type Required Description channelSecretstringyes — accessTokenstringyes —
LinePushBudget#
Field Type Required Description ceilingintegeryes Pushes the workspace's LINE summaries may send each calendar month; 0 sends none.
ConnectLinkCreate#
Field Type Required Description redirectUristringyes Where the browser returns, one of the application's registered redirect URIs.
ConnectLink#
Field Type Required Description urlstringyes Open it in the acting member's browser, once. expiresAtstring (date-time)yes After this the link connects nothing; ask for another.
EngagementPolicy#
Field Type Required Description channelRefstringyes The provider's own id of the room. modestringyes addressed_only or ambient. Clients tolerate values added later.standingOrdersstringno What the assistant follows in this room; empty for none.
EngagementPolicyPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsEngagementPolicy []yes — truncatedbooleanyes The channel has more policies than the platform lists.
ChannelIdentity#
Field Type Required Description idstringyes — providerUserIdstringyes The provider's own id of the user. accountIdstringyes The member it is bound to. evidencestringyes What was verified when it was bound. Clients tolerate values added later. createdAtstring (date-time)yes —
ChannelIdentityPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsChannelIdentity []yes — scopestringyes own, the acting member's binding only, or workspace, everyone's.truncatedbooleanyes The workspace has more bindings than the platform lists.
LineQuota#
Field Type Required Description knownbooleanyes LINE answered. limitedbooleanyes The official account's plan caps pushes per month. limitintegeryes — usedintegeryes —
Conversation#
Field Type Required Description idstringyes — workspaceIdstringyes — categorystringyes conversation, one a person started; background, one automation started; evaluation, an evaluation run's. Clients tolerate values added later.channelbooleanyes Held in a channel (Slack, LINE, Teams) rather than in Agent Lab. agentRefstring or nullyes What it was held with, opaque, for grouping; not a resource of this API. titlestringyes The name a reader sees; the member's own name when they gave one. customTitlestringyes The member's own name for it; empty when they gave none. archivedbooleanyes — pinnedbooleanyes — unseenbooleanyes It holds a reply the acting member has not opened; only ever true for the member who started it. updatedAtstring (date-time)yes —
ConversationPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsConversation []yes —
ConversationMessage#
Field Type Required Description idstringyes — rolestringyes user or assistant. Clients tolerate values added later.statusstringyes pending while a reply is being written, completed or failed. Clients tolerate values added later.contentstringyes — refusalstring or nullyes What stopped this reply, as a stable code, such as budget. Clients tolerate values added later. stoppedbooleanyes The member stopped this reply; its content is what had been written. attachmentsConversationAttachment []yes The 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#
ConversationStateChange#
Only what is sent changes. pinned and archived are never both true.
Field Type Required Description titlestringno The member's own name for it; empty clears it back to the generated one. pinnedbooleanno — archivedbooleanno Archiving also unpins it. seenbooleanno The member opened it. Nothing marks a conversation unread. One of: true.
ConversationAttachment#
Field Type Required Description idstringyes — namestringyes — sourceTypestringyes markdown, text or pdf. Clients tolerate values added later.byteSizeintegeryes — archivedbooleanyes Archived after the member who attached it left the workspace.
ConversationAttachmentContent#
Field Type Required Description idstringyes — namestringyes — sourceTypestringyes markdown, text or pdf. Clients tolerate values added later.byteSizeintegeryes — archivedbooleanyes Archived after the member who attached it left the workspace. contentstringyes The file as it was attached, base64-encoded.
ConversationAttachmentInventory#
Field Type Required Description itemsConversationAttachment []yes — uploaderActivebooleanyes The member who started the conversation is still a member; until they leave, their files cannot be archived.
ConversationSearch#
Field Type Required Description itemsobject[]yes — items[].conversationConversation yes — items[].matchesintegeryes How many of its messages matched; not what orders the list. items[].snippetstringyes The first matching message, clipped. searchedintegeryes How many conversations were searched.
ConversationSource#
Field Type Required Description kindstringyes schedule or trigger. Clients tolerate values added later.idstringyes — namestringno Its name; absent once it has been deleted.
BackgroundConversation#
Field Type Required Description conversationConversation yes — outcomestring or nullyes How its run ended: succeeded, failed, refused or running; null when nobody recorded it. Clients tolerate values added later. sourceConversationSource or nullyes What started it; null when it names nothing. lastActivitystring (date-time)yes —
BackgroundConversationPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsBackgroundConversation []yes —
BackgroundConversationSummary#
Field Type Required Description groupsobject[]yes — groups[].sourceConversationSource yes — groups[].totalintegeryes — groups[].succeededintegeryes — groups[].failedintegeryes — groups[].refusedintegeryes — groups[].runningintegeryes — groups[].unknownintegeryes Runs whose outcome nobody recorded. groups[].lastFailureAtstring (date-time) or null (date-time)yes The newest failed or refused run in the window. unattributedCountintegeryes — windowintegeryes How many of the newest background conversations were counted.
BackgroundConversationUnseen#
Field Type Required Description countintegeryes — windowintegeryes How many of the member's newest background conversations were counted.
PendingAuthorizationList#
Field Type Required Description itemsobject[]yes — items[].toolIdstringyes — items[].namestringyes — items[].descriptionstringyes —
McpCatalogEntry#
Field Type Required Description idstringyes — scopestringyes platform (the platform's own) or workspace (the workspace registered it). Clients tolerate values added later.namestringyes — urlstringyes The connector's MCP server. authTypestringyes How a connection authenticates: none, static_bearer, client_credentials or oauth (in the browser, through POST …/mcp/connections). Clients tolerate values added later. descriptionstringyes — statusstringyes enabled, disabled or deprecated. Clients tolerate values added later.healthstringyes unknown, healthy or unhealthy. Clients tolerate values added later.lastErrorstring or nullyes Why the last health check failed; null when it did not, or for a member who may not manage connections. toolsOmittedintegeryes Tools the server exposed beyond what the platform keeps.
McpCatalog#
Field Type Required Description itemsMcpCatalogEntry []yes — truncatedbooleanyes The workspace has more connectors than the platform lists.
McpConnection#
One identity connected to a connector. Its credential is never answered.
Field Type Required Description idstringyes — catalogEntryIdstringyes — scopestringyes workspace (shared by everyone) or member (one member's own). Clients tolerate values added later.labelstring or nullyes Names one of several shared identities of a connector. authTypestringyes As the connector's authType. statusstringyes connected, needs_reauth (connect again with POST …/mcp/connections) or revoked. Clients tolerate values added later.ownedByMebooleanyes It is the acting member's own. delegationModestringyes Whose permission applies at the connector, in the platform's delegation taxonomy. Clients tolerate values added later. appliesMemberPermissionbooleanyes Calls act with the member's own permission at the connector. credentialExpiresbooleanyes The credential is short-lived and renewed. outputPolicystringyes Who may read what its calls answer: inherit, workspace or personal. Clients tolerate values added later.
McpConnectionPage#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsMcpConnection []yes —
McpConnectionCreate#
Field Type Required Description catalogEntryIdstringyes The connector, one the workspace registered. scopestringyes Shared by everyone, or the acting member's own. One of: workspace, member. labelstringno Names one of several shared identities; only with workspace. redirectUristringyes Where the browser returns, one of the application's registered redirect URIs.
Field Type Required Description namestringyes — descriptionstringyes — serverDeclaredReadOnlyboolean or nullyes The server's own claim, null when it makes none; it never lowers the approval bar. workspaceReadOnlyboolean or nullyes The workspace's own declaration, null when it made none; this, never the server's claim, decides whether a call waits for approval.
Field Type Required Description itemsMcpTool []yes —
The identity a tool presents. The credential itself is never answered.
Field Type Required Description idstringyes — toolIdstringyes — scopestringyes workspace (shared by everyone) or member (one member's own). Clients tolerate values added later.ownedByMebooleanyes It is the acting member's own. delegationModestringyes Whose permission applies downstream, in the platform's delegation taxonomy. Clients tolerate values added later. appliesMemberPermissionbooleanyes — credentialExpiresbooleanyes — statusstringyes connected or revoked. Clients tolerate values added later.
Field Type Required Description itemsToolCredential []yes — truncatedbooleanyes The workspace has more tool credentials than the platform lists.
Field Type Required Description toolIdstringyes — tokenstringyes The credential the tool presents. Never answered.
OAuthError#
Field Type Required Description errorstringyes — error_descriptionstringno —
LegacyErrorString#
The body these operations answered before this document; kept within v1.
Field Type Required Description errorstringyes —
LegacyErrorCode#
The body this operation answered before this document; kept within v1.
Field Type Required Description errorobjectyes — error.codestringyes —
TokenRequest#
Field Type Required Description grant_typestringyes One of: authorization_code, refresh_token, client_credentials. codestringno — code_verifierstringno — client_idstringno — client_secretstringno client_secret_post; a workspace application's secret.redirect_uristringno — resourcestringno — refresh_tokenstringno — installation_idstringno client_credentials: the installation, by id.workspace_idstringno client_credentials: the installation, by the workspace it is in.scopestringno client_credentials: install or absent.
TokenResponse#
Field Type Required Description access_tokenstringyes — token_typestringyes One of: Bearer. expires_inintegeryes Seconds. refresh_tokenstringno — scopestringyes Space-separated. id_tokenstringno Present when openid was granted to an operators' own application.
InstallationTokenResponse#
An installation token (client_credentials).
Field Type Required Description access_tokenstringyes — token_typestringyes One of: Bearer. expires_inintegeryes Seconds. scopestringyes — installation_idstringyes — workspace_idstringyes —
InstallResult#
An install request's code answers where the application was installed, and no token.
Field Type Required Description installation_idstringyes — workspace_idstringyes — scopestringyes —
Introspection#
Field Type Required Description activebooleanyes — substringno The account id. client_idstringno — scopestringno Space-separated. expintegerno Unix seconds. audstringno — issstringno — token_typestringno One of: Bearer. workspace_idstringno An installation token names its workspace.
UserInfo#
Field Type Required Description substringyes — workspace_idstringyes — workspace_slugstringno — workspace_namestringno — emailstringno — email_verifiedbooleanno — namestringno —
OpenIDConfiguration#
Field Type Required Description 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 —
Field Type Required Description 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#
Field Type Required Description versionstringyes agentlab-sdk-event-v1-ed25519.keyIdstringyes — algorithmstringyes One of: Ed25519. publicKeystringyes base64url, no padding.
SdkReply#
Field Type Required Description versionstringyes One of: sdk-event/v1. correlationIdstring (uuid)yes The delivered event's correlationId. contentstringyes The answer's text; not blank.
Problem#
Field Type Required Description fieldstringyes The request's JSON path to the value, such as agent.skills[0].name. reasonstringyes For the developer; not for display to a person, and never parsed.
RunCreate#
Field Type Required Description conversationIdstring (uuid)no A run conversation of this member and installation to continue; omitted starts a new one. agentAgentConfig yes — inputRunInputMessage []yes The member's message. backgroundbooleanno An automation with no reader waiting; not streamed. Default: false. replyToobjectno — replyTo.eventIdstring (uuid)yes The 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). metadataRunMetadata no —
EvaluationRunCreate#
Field Type Required Description agentAgentConfig yes — casesEvaluationCase []yes The cases to ask, each with an id no other case of the run has.
EvaluationCase#
Field Type Required Description idstringyes The application's own id for the case, echoed back with its result; no surrounding spaces. titlestringno A name for the case; omitted, the start of its question. inputRunInputMessage []yes The member's message the case asks; at most 1000 characters in all. expectationsEvaluationExpectations yes — weightintegerno What the case counts for beside the others. Default: 1.
EvaluationExpectations#
Field Type Required Description rubricstringyes What a good answer does, which the platform's judge reads; no surrounding spaces. requiredToolsstring[]no Tools the answer must have used successfully, by name. Each name at most 120 bytes in UTF-8, listed once, no surrounding spaces. forbiddenToolsstring[]no Tools 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. groundingRequiredbooleanno The answer must rest on the configuration's knowledge. Default: false. mustContainstring[]no Phrases 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[]no Phrases 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#
Field Type Required Description idstringyes — statusstringyes running, completed (every case answered and judged) or failed (reason says why). Clients tolerate values added later. One of: running, completed, failed.reasonstring or nullyes Why the run failed; null otherwise. passedintegeryes Cases judged so far that passed. failedintegeryes Cases judged so far that did not pass, an error verdict included. casesEvaluationCaseResult []yes — createdAtstring (date-time)yes When 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#
Field Type Required Description idstringyes The case's id as the application sent it. resultnull or EvaluationVerdict yes The answer and the judge's verdict; null until the case is answered and judged.
EvaluationVerdict#
Field Type Required Description verdictstringyes pass, fail, or error (the case could not be answered or judged). Clients tolerate values added later. One of: pass, fail, error.outputstringyes The answer's text. rationalestringyes The judge's reasoning, or why the case could not be answered. refusalstring or nullyes Which limit refused the answer, when the verdict is error for that reason. modelstringyes The model that answered; empty when none did. durationMsintegeryes How long the answer took; 0 when not recorded. toolCallsobject[]yes The tools the answer reached for, in order, and how each call ended. toolCalls[].namestringyes — toolCalls[].statusstringyes How the call ended (succeeded, failed, rejected for a call declined because it waited for a person, refused). Clients tolerate values added later. weightintegeryes What the case counted for; 0 when not recorded. phraseFailuresobject[]yes Every 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[].expectationstringyes mustContain or mustNotContain: the list the phrase came from. One of: mustContain, mustNotContain.phraseFailures[].phrasestringyes —
DeploymentCreate#
Field Type Required Description entryKindstringyes slack, slack_channel or line; values may be added later.entryRefstringyes The entry point in the channel's own terms, as createDeployment describes. agentAgentConfig no —
DeployedAgentReplace#
Field Type Required Description agentAgentConfig yes — expectedRevisionintegeryes The revision this replaces, as the deployment answered it; 0 for the first.
DeployedAgent#
Field Type Required Description agentRefstring or nullyes The deployed configuration's ref, null when it named none. revisionintegeryes Counts the configurations deployed to this entry; the next replacement names it. deployedAtstring (date-time)yes —
Deployment#
Field Type Required Description idstringyes — entryKindstringyes — entryRefstringyes — statusstringyes active or disabled; clients tolerate values added later.responderstringyes application, a registered application answers the entry; agent, an assistant the console deployed. Clients tolerate values added later.applicationIdstring or nullyes The registered application that answers the entry, null for an assistant. thisApplicationbooleanyes The calling installation's application answers the entry. agentDeployedAgent or nullyes The 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#
Field Type Required Description nextCursorstring or nullno Absent or null on the last page. itemsDeployment []yes —
The application's own values, kept with the run and answered back; never interpreted.
AgentConfig#
The agent, passed with every run. The platform keeps it with the run and stores no agent.
Field Type Required Description refstringno The 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 []no Standing instructions sent with the agent's, in order; together at most 6000 characters with their headings. toolsRunTool []no The 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. knowledgeRunKnowledge no —
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.
Field Type Required Description typestringyes One of: mcp, http. connectionIdstringno — allowedToolsstring[]no — approvalstringyes One of: always, never. namestringno — descriptionstringno — inputSchemaobjectno — urlstringno — methodstringno One 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.
Field Type Required Description documentIdsstring[]no — qaIdsstring[]no Every listed entry the member may read is sent with each answer. scopestringno One of: listed, workspace. contextProviderstringno One of: self.
InlineSkill#
Field Type Required Description namestringyes — instructionsstringyes —
Field Type Required Description rolestringyes One of: user. contentRunTextPart []yes Text parts, joined with a blank line; at most 4000 characters in all.
RunTextPart#
Field Type Required Description typestringyes One of: text. textstringyes —
Run#
Field Type Required Description idstringyes — conversationIdstringyes — statusstringyes queued, 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 nullyes The configuration's ref; null when it had none. outputRunOutputMessage [] or nullyes The answer, when completed. refusalstring or nullyes Which limit refused the answer, when refused. metadataRunMetadata no — backgroundbooleanno — cancelledbooleanno The run was stopped (POST …/runs/{runId}/cancel) before it finished; its status is failed. replyToobject or nullno The event the run answers, when it was started with replyTo. replyTo.eventIdstringyes — replyTo.deliverystringyes pending 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 RunRequiredAction no What 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.
RunRequiredAction#
Field Type Required Description idstringyes — namestringyes The tool, as the agent called it (an MCP tool's name is prefixed mcp__). argumentsobjectyes What the agent passed. readOnlyboolean or nullyes The risk the workspace declared for this tool: true read-only, false writing, null undeclared (approved as destructive). reasonstring or nullyes Why the call waits for a person beyond the configuration asking, when there is one. createdAtstring (date-time)yes —
Field Type Required Description decisionstringyes One of: approve, reject.
RunOutputMessage#
Field Type Required Description rolestringyes One of: assistant. contentobject[]yes — content[].typestringyes One of: text. content[].textstringyes —
UsageReport#
Field Type Required Description sinceDaysintegeryes The window the report covers, in days. itemsAgentRefUsage []yes — truncatedbooleanyes There are more groups than the report lists.
AgentRefUsage#
Field Type Required Description agentRefstring or nullyes The configuration's ref; null for configurations passed without one. kindstringyes run or evaluation. Clients tolerate values added later.turnsintegeryes Replies answered. modelCallsintegeryes Model calls made for those replies; a reply that calls tools makes several. inputTokensintegeryes Input tokens charged at the full rate (not read from or written to a cache). outputTokensintegeryes — cachedReadTokensintegeryes — cacheWriteTokensintegeryes — costnull or UsageCost yes What it cost at the workspace's prices; null for a member who may not read cost.
UsageCost#
Field Type Required Description amountUsdnumberyes — pricingCompletebooleanyes Every 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#
Field Type Required Description idstringyes — kindstringyes standing or episodic. Clients tolerate values added later.bodystringyes One sentence, at most 1000 characters. sourceLabelstringyes Where it was learned, as the console names it. sourceTrustedbooleanyes — explicitbooleanyes Someone stated it deliberately, rather than an assistant inferring it. organizationWidebooleanyes — capturedAtstring (date-time)yes —
MemoryRevision#
Field Type Required Description idstringyes — opstringyes What the line records, such as edit or delete. Clients tolerate values added later. bodystringyes — authorAccountIdstring or nullyes The member who made the change; null when an assistant made it. atstring (date-time)yes —
MemoryNotebook#
Field Type Required Description standingMemoryFact []yes — episodicMemoryFact []yes — historyMemoryRevision []yes The 50 newest history lines, newest first. historyTruncatedbooleanyes —
MemoryFactEdit#
Field Type Required Description expectedBodystringyes The fact's sentence as last read. bodystringyes —
TranscriptionCreate#
Field Type Required Description audiostringyes A mono 16 kHz 16-bit PCM WAV of at most two minutes, base64-encoded.
Transcription#
Field Type Required Description textstringyes —
OutreachSend#
Field Type Required Description targetUserRefstringno A person, by their Slack user id. Exactly one of this and targetChannelRef. targetChannelRefstringno A channel, by its Slack id. Exactly one of this and targetUserRef. bodystringyes The message, at most 4000 characters. reasonstringyes Why it is sent, at most 300 characters; kept with the message.
OutreachMessage#
Field Type Required Description idstringyes — channelIdstringyes The channel it was sent through. targetRefstringyes The Slack conversation it was posted to (a direct message's, for a person). bodystringyes — reasonstringyes — statusstringyes pending, sent, abandoned or unknown. Clients tolerate values added later.attemptsintegeryes — lastErrorstringyes Why the latest attempt failed; empty when none did. createdAtstring (date-time)yes —
OutreachList#
Field Type Required Description itemsOutreachMessage []yes — truncatedbooleanyes The member has older sends in the workspace than the 50 that were read.
Gateway#
Field Type Required Description enabledbooleanyes — operatorDisabledbooleanyes Agent Lab turned the Gateway off for this workspace. plannull or GatewayPlan yes Null while the Gateway is off, and for a member who may not read usage.
GatewayPlan#
Field Type Required Description planstringyes The plan's name. Clients tolerate values added later. sourcestringyes Where the plan comes from. Clients tolerate values added later. includedRequestsinteger or nullyes The requests the plan includes this month; null when it does not limit them. usedRequestsinteger or nullyes The requests made this month; null when they are not counted. periodStartstring (date-time)yes — periodEndstring (date-time)yes — asOfstring (date-time)yes — spendCapUsdnumber or nullyes The plan's model-spend ceiling; null without one. spentUsdnumber or nullyes All Gateway spend the workspace made; null when some of it has no price. creditnull or GatewayCredit yes The prepaid credit; null before the first credit.
GatewayCredit#
Field Type Required Description creditedUsdnumberyes Every top-up, contract credit and redeemed code. spentUsdnumber or nullyes What was drawn from it; null when some spend has no price. balanceUsdnumber or nullyes What is left; null when the spend is not known.