Schema ของ Platform API
ทุกออบเจกต์ที่ Platform API v1 รับและส่ง ทีละฟิลด์ รวมถึง event stream ของการรัน (RunEvents) และรูปแบบ Error
อัปเดตล่าสุด 2026-12-05
สร้างจาก API contract (Agent Lab Platform API 1.0.0-alpha.1) คำอธิบายเป็นภาษาอังกฤษตามต้นฉบับใน contract
Recovery#
What gets a refused request working again. Clients tolerate values added later.
ชนิด ค่า stringค่าที่เป็นไปได้: authorize, configure, retry, none.
Error#
ฟิลด์ ชนิด จำเป็น คำอธิบาย errorobjectใช่ — error.codestringใช่ Stable, UPPER_SNAKE_CASE. New codes may be added under an existing recovery. error.messagestringใช่ For the developer's logs; not for display to a person, and never parsed. error.recoveryRecovery ใช่ — error.requestIdstringใช่ Quote it when asking for support. error.problemsProblem []ไม่ With RUN_CONFIGURATION_INVALID: every problem found, each with its field.
Page#
The page envelope every list answers, with its items beside it.
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page.
AccountWorkspace#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — namestringใช่ — slugstringใช่ The workspace's short name, in its console address. statestringใช่ deletion_scheduled only in the list filtered by it. ค่าที่เป็นไปได้: active, deletion_scheduled.rolestringไม่ The person's role in the workspace, when known. Clients tolerate roles added later. organizationobjectไม่ The organization the workspace belongs to, once it is placed in one. organization.idstringใช่ — organization.namestringใช่ — deletionEffectiveAtstring (date-time)ไม่ When a workspace scheduled for deletion is deleted; recoverable until then.
AccountWorkspaceList#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsAccountWorkspace []ใช่ — creationobjectไม่ Whether the person may create another workspace; absent from the deletion_scheduled list. creation.statusstringใช่ ค่าที่เป็นไปได้: available, limit_reached. creation.remaininginteger หรือ nullไม่ With available, how many more; null when there is no limit. creation.limitintegerไม่ With limit_reached, the limit.
AccountWorkspaceCreate#
ฟิลด์ ชนิด จำเป็น คำอธิบาย namestringใช่ — slugstringใช่ —
WorkspaceAdmission#
ฟิลด์ ชนิด จำเป็น คำอธิบาย statusstringใช่ ค่าที่เป็นไปได้: reachable, realm_not_admitted, no_membership. signInRealmsobject[]ไม่ With realm_not_admitted, the entrances the workspace admits. signInRealms[].idstringใช่ — signInRealms[].kindstringใช่ — signInRealms[].loginMethodsstring[]ใช่ —
Installation#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — workspaceIdstringใช่ — clientIdstringใช่ The OAuth client id of the installed application. applicationNamestringใช่ — installedAtstring (date-time)ใช่ — grantedScopesstring[]ใช่ What an administrator approved. pendingScopesstring[]ใช่ What the application declares beyond them, awaiting an administrator's approval. tokenScopesstring[]ใช่ What this token carries, and so what this call and the next ones with it may use.
WorkspaceMember#
ฟิลด์ ชนิด จำเป็น คำอธิบาย accountIdstringใช่ — rolestringใช่ The member's role in the workspace. Clients tolerate roles added later. capabilitiesstring[]ใช่ What the role lets the member do in this workspace. Clients ignore names they do not know.
WorkspaceSettings#
ฟิลด์ ชนิด จำเป็น คำอธิบาย defaultModelstringใช่ The workspace's default model id; empty when it uses the platform's. systemPromptstringใช่ The instructions the workspace adds to every answer. requireEvalBeforePublishbooleanใช่ — monthlyTokenBudgetintegerใช่ Tokens per calendar month; 0 keeps the platform's default. rollingWindowTokenBudgetintegerใช่ Tokens per rolling window; 0 keeps the platform's default. disableAutoToolExecutionbooleanใช่ Every tool call waits for a person's approval. approvalChannelIdstringใช่ Where approval requests are delivered; empty keeps them in the console. localestringใช่ The language of platform-written messages. auditRetentionDaysinteger หรือ nullใช่ Null keeps every audit record. gatewayActivityRetentionDaysinteger หรือ nullใช่ Null keeps every AI Gateway activity record. sandboxPosturestringใช่ — sandboxAvailablebooleanใช่ Whether this platform offers code execution to the workspace at all. taskFocusedbooleanใช่ — generalAssistantEnabledbooleanใช่ — timeZonestringใช่ IANA time zone.
WorkspaceSettingsPatch#
The settings to change; each field left out keeps its value.
ฟิลด์ ชนิด จำเป็น คำอธิบาย defaultModelstringไม่ A model id or capability profile the plan includes; empty uses the platform's default. systemPromptstringไม่ — requireEvalBeforePublishbooleanไม่ — monthlyTokenBudgetintegerไม่ — rollingWindowTokenBudgetintegerไม่ — disableAutoToolExecutionbooleanไม่ — approvalChannelIdstringไม่ Trimmed, then at most 60 characters; empty keeps approvals in the console. localestringไม่ ค่าที่เป็นไปได้: en, zh-TW, zh-CN, ja, th. auditRetentionDaysinteger หรือ nullไม่ Null keeps every audit record. gatewayActivityRetentionDaysinteger หรือ nullไม่ Null keeps every AI Gateway activity record; a number deletes older records. taskFocusedbooleanไม่ — generalAssistantEnabledbooleanไม่ — timeZonestringไม่ An IANA time zone; empty uses the platform's.
InstructionVersion#
ฟิลด์ ชนิด จำเป็น คำอธิบาย seqintegerใช่ The version's number in the workspace, from 1. systemPromptstringใช่ — changedByAccountIdstring หรือ nullใช่ The member who set it; null for a version the platform wrote. createdAtstring (date-time)ใช่ —
InstructionVersionPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsInstructionVersion []ใช่ —
WorkspaceModule#
ฟิลด์ ชนิด จำเป็น คำอธิบาย modulestringใช่ The product (deployment, studio, aiRouting, channelSdk, apiGateway, or one added later). enabledbooleanใช่ — planstringใช่ The product's plan (such as free).
WorkspaceModuleList#
Team#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — namestringใช่ — memberCountintegerใช่ — createdAtstring (date-time)ใช่ — viewerRolestring หรือ nullใช่ The acting member's role in the team (manager or member); null when not on it.
TeamPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsTeam []ใช่ — truncatedbooleanใช่ The workspace has more teams than the platform lists.
Member#
ฟิลด์ ชนิด จำเป็น คำอธิบาย accountIdstringใช่ — emailstring หรือ nullใช่ — rolestringใช่ — statusstringใช่ — createdAtstring (date-time)ใช่ When the membership began.
MemberPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsMember []ใช่ — truncatedbooleanใช่ The workspace has more members than the platform lists.
Model#
ฟิลด์ ชนิด จำเป็น คำอธิบาย providerstringใช่ — idstringใช่ — displayNamestringใช่ — isDefaultbooleanใช่ The platform's default model. entitledbooleanใช่ The workspace's plan includes it; a run naming one it does not is refused.
ResolvedModel#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — entitledbooleanใช่ —
ModelCatalog#
ฟิลด์ ชนิด จำเป็น คำอธิบาย itemsModel []ใช่ — capabilityProfilesobject[]ใช่ Model choices by capability rather than by name, such as agentlab/balanced. capabilityProfiles[].idstringใช่ — capabilityProfiles[].tierstringใช่ — platformDefaultResolvedModel ใช่ — workspaceDefaultResolvedModel ใช่ —
KnowledgeAudience#
Who may retrieve it: organization, every member; team, the named teams and the workspace's owners and administrators.
ชนิด ค่า stringค่าที่เป็นไปได้: organization, team.
KnowledgeDocument#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — titlestringใช่ — sourceTypestringใช่ markdown, text or pdf.byteSizeintegerใช่ — statusstringใช่ queued, indexing, waiting_for_confirmation, waiting_for_allowance, ready or failed. Only a ready document contributes to answers. Clients tolerate values added later.descriptionstringใช่ The summary indexing wrote; empty until ready. sectionCountintegerใช่ — errorstring หรือ nullใช่ Why indexing failed, for the developer's logs. failureCodestring หรือ nullใช่ A stable reason for some failures, such as spend_cap_reached. estimatedCostMicrosintegerใช่ Indexing's estimated cost, in millionths of a US dollar. spendCapMicrosintegerใช่ — audienceKnowledgeAudience ใช่ — personalbooleanใช่ The acting member's own document, which no one else sees. createdAtstring (date-time)ใช่ —
KnowledgeDocumentPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsKnowledgeDocument []ใช่ —
KnowledgeDocumentUpload#
ฟิลด์ ชนิด จำเป็น คำอธิบาย titlestringใช่ — sourceTypestringใช่ ค่าที่เป็นไปได้: markdown, text, pdf. contentstringใช่ The text, or for pdf the file base64-encoded. audienceKnowledgeAudience ไม่ — audienceTeamIdsstring (uuid)[]ไม่ With audience: team, the teams it admits, by id.
KnowledgeQAEntry#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — questionstringใช่ — answerstringใช่ — audienceKnowledgeAudience ใช่ — createdAtstring (date-time)ใช่ — updatedAtstring (date-time)ใช่ —
KnowledgeQAPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsKnowledgeQAEntry []ใช่ —
KnowledgeQACreate#
ฟิลด์ ชนิด จำเป็น คำอธิบาย questionstringใช่ — answerstringใช่ — audienceKnowledgeAudience ไม่ — audienceTeamIdsstring (uuid)[]ไม่ With audience: team, the teams it admits, by id.
KnowledgeQAUpdate#
ฟิลด์ ชนิด จำเป็น คำอธิบาย questionstringใช่ — answerstringใช่ —
Channel#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — providerstringใช่ slack, line or teams. Clients tolerate values added later.teamNamestringใช่ The provider workspace or official account's name. teamRefstringใช่ The provider's own id for it. statusstringใช่ connected or revoked. Clients tolerate values added later.scopeCoveragestringใช่ Whether the provider granted everything the platform asks for. ambientReadinessstringใช่ Whether the platform can answer in it without being mentioned. createdAtstring (date-time)ใช่ —
ChannelPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsChannel []ใช่ — truncatedbooleanใช่ The workspace has more channels than the platform lists.
LineConnect#
A LINE official account's Messaging API credentials. Never answered.
ฟิลด์ ชนิด จำเป็น คำอธิบาย channelSecretstringใช่ — accessTokenstringใช่ —
LinePushBudget#
ฟิลด์ ชนิด จำเป็น คำอธิบาย ceilingintegerใช่ Pushes the workspace's LINE summaries may send each calendar month; 0 sends none.
ConnectLinkCreate#
ฟิลด์ ชนิด จำเป็น คำอธิบาย redirectUristringใช่ Where the browser returns, one of the application's registered redirect URIs.
ConnectLink#
ฟิลด์ ชนิด จำเป็น คำอธิบาย urlstringใช่ Open it in the acting member's browser, once. expiresAtstring (date-time)ใช่ After this the link connects nothing; ask for another.
EngagementPolicy#
ฟิลด์ ชนิด จำเป็น คำอธิบาย channelRefstringใช่ The provider's own id of the room. modestringใช่ addressed_only or ambient. Clients tolerate values added later.standingOrdersstringไม่ What the assistant follows in this room; empty for none.
EngagementPolicyPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsEngagementPolicy []ใช่ — truncatedbooleanใช่ The channel has more policies than the platform lists.
ChannelIdentity#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — providerUserIdstringใช่ The provider's own id of the user. accountIdstringใช่ The member it is bound to. evidencestringใช่ What was verified when it was bound. Clients tolerate values added later. createdAtstring (date-time)ใช่ —
ChannelIdentityPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsChannelIdentity []ใช่ — scopestringใช่ own, the acting member's binding only, or workspace, everyone's.truncatedbooleanใช่ The workspace has more bindings than the platform lists.
LineQuota#
ฟิลด์ ชนิด จำเป็น คำอธิบาย knownbooleanใช่ LINE answered. limitedbooleanใช่ The official account's plan caps pushes per month. limitintegerใช่ — usedintegerใช่ —
Conversation#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — workspaceIdstringใช่ — categorystringใช่ conversation, one a person started; background, one automation started; evaluation, an evaluation run's. Clients tolerate values added later.channelbooleanใช่ Held in a channel (Slack, LINE, Teams) rather than in Agent Lab. agentRefstring หรือ nullใช่ What it was held with, opaque, for grouping; not a resource of this API. titlestringใช่ The name a reader sees; the member's own name when they gave one. customTitlestringใช่ The member's own name for it; empty when they gave none. archivedbooleanใช่ — pinnedbooleanใช่ — unseenbooleanใช่ It holds a reply the acting member has not opened; only ever true for the member who started it. updatedAtstring (date-time)ใช่ —
ConversationPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsConversation []ใช่ —
ConversationMessage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — rolestringใช่ user or assistant. Clients tolerate values added later.statusstringใช่ pending while a reply is being written, completed or failed. Clients tolerate values added later.contentstringใช่ — refusalstring หรือ nullใช่ What stopped this reply, as a stable code, such as budget. Clients tolerate values added later. stoppedbooleanใช่ The member stopped this reply; its content is what had been written. attachmentsConversationAttachment []ใช่ The files the member attached to this message; empty on a read by anyone but the member who started the conversation. createdAtstring (date-time)ใช่ —
ConversationDetail#
ConversationStateChange#
Only what is sent changes. pinned and archived are never both true.
ฟิลด์ ชนิด จำเป็น คำอธิบาย titlestringไม่ The member's own name for it; empty clears it back to the generated one. pinnedbooleanไม่ — archivedbooleanไม่ Archiving also unpins it. seenbooleanไม่ The member opened it. Nothing marks a conversation unread. ค่าที่เป็นไปได้: true.
ConversationAttachment#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — namestringใช่ — sourceTypestringใช่ markdown, text or pdf. Clients tolerate values added later.byteSizeintegerใช่ — archivedbooleanใช่ Archived after the member who attached it left the workspace.
ConversationAttachmentContent#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — namestringใช่ — sourceTypestringใช่ markdown, text or pdf. Clients tolerate values added later.byteSizeintegerใช่ — archivedbooleanใช่ Archived after the member who attached it left the workspace. contentstringใช่ The file as it was attached, base64-encoded.
ConversationAttachmentInventory#
ฟิลด์ ชนิด จำเป็น คำอธิบาย itemsConversationAttachment []ใช่ — uploaderActivebooleanใช่ The member who started the conversation is still a member; until they leave, their files cannot be archived.
ConversationSearch#
ฟิลด์ ชนิด จำเป็น คำอธิบาย itemsobject[]ใช่ — items[].conversationConversation ใช่ — items[].matchesintegerใช่ How many of its messages matched; not what orders the list. items[].snippetstringใช่ The first matching message, clipped. searchedintegerใช่ How many conversations were searched.
ConversationSource#
ฟิลด์ ชนิด จำเป็น คำอธิบาย kindstringใช่ schedule or trigger. Clients tolerate values added later.idstringใช่ — namestringไม่ Its name; absent once it has been deleted.
BackgroundConversation#
ฟิลด์ ชนิด จำเป็น คำอธิบาย conversationConversation ใช่ — outcomestring หรือ nullใช่ How its run ended: succeeded, failed, refused or running; null when nobody recorded it. Clients tolerate values added later. sourceConversationSource หรือ nullใช่ What started it; null when it names nothing. lastActivitystring (date-time)ใช่ —
BackgroundConversationPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsBackgroundConversation []ใช่ —
BackgroundConversationSummary#
ฟิลด์ ชนิด จำเป็น คำอธิบาย groupsobject[]ใช่ — groups[].sourceConversationSource ใช่ — groups[].totalintegerใช่ — groups[].succeededintegerใช่ — groups[].failedintegerใช่ — groups[].refusedintegerใช่ — groups[].runningintegerใช่ — groups[].unknownintegerใช่ Runs whose outcome nobody recorded. groups[].lastFailureAtstring (date-time) หรือ null (date-time)ใช่ The newest failed or refused run in the window. unattributedCountintegerใช่ — windowintegerใช่ How many of the newest background conversations were counted.
BackgroundConversationUnseen#
ฟิลด์ ชนิด จำเป็น คำอธิบาย countintegerใช่ — windowintegerใช่ How many of the member's newest background conversations were counted.
PendingAuthorizationList#
ฟิลด์ ชนิด จำเป็น คำอธิบาย itemsobject[]ใช่ — items[].toolIdstringใช่ — items[].namestringใช่ — items[].descriptionstringใช่ —
McpCatalogEntry#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — scopestringใช่ platform (the platform's own) or workspace (the workspace registered it). Clients tolerate values added later.namestringใช่ — urlstringใช่ The connector's MCP server. authTypestringใช่ How a connection authenticates: none, static_bearer, client_credentials or oauth (in the browser, through POST …/mcp/connections). Clients tolerate values added later. descriptionstringใช่ — statusstringใช่ enabled, disabled or deprecated. Clients tolerate values added later.healthstringใช่ unknown, healthy or unhealthy. Clients tolerate values added later.lastErrorstring หรือ nullใช่ Why the last health check failed; null when it did not, or for a member who may not manage connections. toolsOmittedintegerใช่ Tools the server exposed beyond what the platform keeps.
McpCatalog#
ฟิลด์ ชนิด จำเป็น คำอธิบาย itemsMcpCatalogEntry []ใช่ — truncatedbooleanใช่ The workspace has more connectors than the platform lists.
McpConnection#
One identity connected to a connector. Its credential is never answered.
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — catalogEntryIdstringใช่ — scopestringใช่ workspace (shared by everyone) or member (one member's own). Clients tolerate values added later.labelstring หรือ nullใช่ Names one of several shared identities of a connector. authTypestringใช่ As the connector's authType. statusstringใช่ connected, needs_reauth (connect again with POST …/mcp/connections) or revoked. Clients tolerate values added later.ownedByMebooleanใช่ It is the acting member's own. delegationModestringใช่ Whose permission applies at the connector, in the platform's delegation taxonomy. Clients tolerate values added later. appliesMemberPermissionbooleanใช่ Calls act with the member's own permission at the connector. credentialExpiresbooleanใช่ The credential is short-lived and renewed. outputPolicystringใช่ Who may read what its calls answer: inherit, workspace or personal. Clients tolerate values added later.
McpConnectionPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsMcpConnection []ใช่ —
McpConnectionCreate#
ฟิลด์ ชนิด จำเป็น คำอธิบาย catalogEntryIdstringใช่ The connector, one the workspace registered. scopestringใช่ Shared by everyone, or the acting member's own. ค่าที่เป็นไปได้: workspace, member. labelstringไม่ Names one of several shared identities; only with workspace. redirectUristringใช่ Where the browser returns, one of the application's registered redirect URIs.
ฟิลด์ ชนิด จำเป็น คำอธิบาย namestringใช่ — descriptionstringใช่ — serverDeclaredReadOnlyboolean หรือ nullใช่ The server's own claim, null when it makes none; it never lowers the approval bar. workspaceReadOnlyboolean หรือ nullใช่ The workspace's own declaration, null when it made none; this, never the server's claim, decides whether a call waits for approval.
ฟิลด์ ชนิด จำเป็น คำอธิบาย itemsMcpTool []ใช่ —
The identity a tool presents. The credential itself is never answered.
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — toolIdstringใช่ — scopestringใช่ workspace (shared by everyone) or member (one member's own). Clients tolerate values added later.ownedByMebooleanใช่ It is the acting member's own. delegationModestringใช่ Whose permission applies downstream, in the platform's delegation taxonomy. Clients tolerate values added later. appliesMemberPermissionbooleanใช่ — credentialExpiresbooleanใช่ — statusstringใช่ connected or revoked. Clients tolerate values added later.
ฟิลด์ ชนิด จำเป็น คำอธิบาย itemsToolCredential []ใช่ — truncatedbooleanใช่ The workspace has more tool credentials than the platform lists.
ฟิลด์ ชนิด จำเป็น คำอธิบาย toolIdstringใช่ — tokenstringใช่ The credential the tool presents. Never answered.
OAuthError#
ฟิลด์ ชนิด จำเป็น คำอธิบาย errorstringใช่ — error_descriptionstringไม่ —
LegacyErrorString#
The body these operations answered before this document; kept within v1.
ฟิลด์ ชนิด จำเป็น คำอธิบาย errorstringใช่ —
LegacyErrorCode#
The body this operation answered before this document; kept within v1.
ฟิลด์ ชนิด จำเป็น คำอธิบาย errorobjectใช่ — error.codestringใช่ —
TokenRequest#
ฟิลด์ ชนิด จำเป็น คำอธิบาย grant_typestringใช่ ค่าที่เป็นไปได้: authorization_code, refresh_token, client_credentials. codestringไม่ — code_verifierstringไม่ — client_idstringไม่ — client_secretstringไม่ client_secret_post; a workspace application's secret.redirect_uristringไม่ — resourcestringไม่ — refresh_tokenstringไม่ — installation_idstringไม่ client_credentials: the installation, by id.workspace_idstringไม่ client_credentials: the installation, by the workspace it is in.scopestringไม่ client_credentials: install or absent.
TokenResponse#
ฟิลด์ ชนิด จำเป็น คำอธิบาย access_tokenstringใช่ — token_typestringใช่ ค่าที่เป็นไปได้: Bearer. expires_inintegerใช่ Seconds. refresh_tokenstringไม่ — scopestringใช่ Space-separated. id_tokenstringไม่ Present when openid was granted to an operators' own application.
InstallationTokenResponse#
An installation token (client_credentials).
ฟิลด์ ชนิด จำเป็น คำอธิบาย access_tokenstringใช่ — token_typestringใช่ ค่าที่เป็นไปได้: Bearer. expires_inintegerใช่ Seconds. scopestringใช่ — installation_idstringใช่ — workspace_idstringใช่ —
InstallResult#
An install request's code answers where the application was installed, and no token.
ฟิลด์ ชนิด จำเป็น คำอธิบาย installation_idstringใช่ — workspace_idstringใช่ — scopestringใช่ —
Introspection#
ฟิลด์ ชนิด จำเป็น คำอธิบาย activebooleanใช่ — substringไม่ The account id. client_idstringไม่ — scopestringไม่ Space-separated. expintegerไม่ Unix seconds. audstringไม่ — issstringไม่ — token_typestringไม่ ค่าที่เป็นไปได้: Bearer. workspace_idstringไม่ An installation token names its workspace.
UserInfo#
ฟิลด์ ชนิด จำเป็น คำอธิบาย substringใช่ — workspace_idstringใช่ — workspace_slugstringไม่ — workspace_namestringไม่ — emailstringไม่ — email_verifiedbooleanไม่ — namestringไม่ —
OpenIDConfiguration#
ฟิลด์ ชนิด จำเป็น คำอธิบาย issuerstringใช่ — authorization_endpointstringใช่ — token_endpointstringใช่ — userinfo_endpointstringใช่ — revocation_endpointstringไม่ — introspection_endpointstringไม่ — jwks_uristringใช่ — response_types_supportedstring[]ใช่ — grant_types_supportedstring[]ไม่ — subject_types_supportedstring[]ใช่ — id_token_signing_alg_values_supportedstring[]ใช่ — code_challenge_methods_supportedstring[]ไม่ — token_endpoint_auth_methods_supportedstring[]ไม่ — introspection_endpoint_auth_methods_supportedstring[]ไม่ — scopes_supportedstring[]ไม่ — claims_supportedstring[]ไม่ —
ฟิลด์ ชนิด จำเป็น คำอธิบาย issuerstringใช่ — authorization_endpointstringใช่ — token_endpointstringใช่ — revocation_endpointstringไม่ — registration_endpointstringไม่ — response_types_supportedstring[]ใช่ — grant_types_supportedstring[]ไม่ — code_challenge_methods_supportedstring[]ไม่ — token_endpoint_auth_methods_supportedstring[]ไม่ — scopes_supportedstring[]ไม่ — client_id_metadata_document_supportedbooleanไม่ —
SdkEventVerificationKey#
ฟิลด์ ชนิด จำเป็น คำอธิบาย versionstringใช่ agentlab-sdk-event-v1-ed25519.keyIdstringใช่ — algorithmstringใช่ ค่าที่เป็นไปได้: Ed25519. publicKeystringใช่ base64url, no padding.
SdkReply#
ฟิลด์ ชนิด จำเป็น คำอธิบาย versionstringใช่ ค่าที่เป็นไปได้: sdk-event/v1. correlationIdstring (uuid)ใช่ The delivered event's correlationId. contentstringใช่ The answer's text; not blank.
Problem#
ฟิลด์ ชนิด จำเป็น คำอธิบาย fieldstringใช่ The request's JSON path to the value, such as agent.skills[0].name. reasonstringใช่ For the developer; not for display to a person, and never parsed.
RunCreate#
ฟิลด์ ชนิด จำเป็น คำอธิบาย conversationIdstring (uuid)ไม่ A run conversation of this member and installation to continue; omitted starts a new one. agentAgentConfig ใช่ — inputRunInputMessage []ใช่ The member's message. backgroundbooleanไม่ An automation with no reader waiting; not streamed. ค่าเริ่มต้น: false. replyToobjectไม่ — replyTo.eventIdstring (uuid)ใช่ 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 ไม่ —
EvaluationRunCreate#
ฟิลด์ ชนิด จำเป็น คำอธิบาย agentAgentConfig ใช่ — casesEvaluationCase []ใช่ The cases to ask, each with an id no other case of the run has.
EvaluationCase#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ The application's own id for the case, echoed back with its result; no surrounding spaces. titlestringไม่ A name for the case; omitted, the start of its question. inputRunInputMessage []ใช่ The member's message the case asks; at most 1000 characters in all. expectationsEvaluationExpectations ใช่ — weightintegerไม่ What the case counts for beside the others. ค่าเริ่มต้น: 1.
EvaluationExpectations#
ฟิลด์ ชนิด จำเป็น คำอธิบาย rubricstringใช่ What a good answer does, which the platform's judge reads; no surrounding spaces. requiredToolsstring[]ไม่ Tools the answer must have used successfully, by name. Each name at most 120 bytes in UTF-8, listed once, no surrounding spaces. forbiddenToolsstring[]ไม่ 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. groundingRequiredbooleanไม่ The answer must rest on the configuration's knowledge. ค่าเริ่มต้น: false. mustContainstring[]ไม่ 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[]ไม่ 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#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — statusstringใช่ running, completed (every case answered and judged) or failed (reason says why). Clients tolerate values added later. ค่าที่เป็นไปได้: running, completed, failed.reasonstring หรือ nullใช่ Why the run failed; null otherwise. passedintegerใช่ Cases judged so far that passed. failedintegerใช่ Cases judged so far that did not pass, an error verdict included. casesEvaluationCaseResult []ใช่ — createdAtstring (date-time)ใช่ When the run started; on the 202, when the start was answered, which may differ by a moment. completedAtstring (date-time) หรือ null (date-time)ใช่ —
EvaluationCaseResult#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ The case's id as the application sent it. resultnull หรือ EvaluationVerdict ใช่ The answer and the judge's verdict; null until the case is answered and judged.
EvaluationVerdict#
ฟิลด์ ชนิด จำเป็น คำอธิบาย verdictstringใช่ pass, fail, or error (the case could not be answered or judged). Clients tolerate values added later. ค่าที่เป็นไปได้: pass, fail, error.outputstringใช่ The answer's text. rationalestringใช่ The judge's reasoning, or why the case could not be answered. refusalstring หรือ nullใช่ Which limit refused the answer, when the verdict is error for that reason. modelstringใช่ The model that answered; empty when none did. durationMsintegerใช่ How long the answer took; 0 when not recorded. toolCallsobject[]ใช่ The tools the answer reached for, in order, and how each call ended. toolCalls[].namestringใช่ — toolCalls[].statusstringใช่ How the call ended (succeeded, failed, rejected for a call declined because it waited for a person, refused). Clients tolerate values added later. weightintegerใช่ What the case counted for; 0 when not recorded. phraseFailuresobject[]ใช่ 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[].expectationstringใช่ mustContain or mustNotContain: the list the phrase came from. ค่าที่เป็นไปได้: mustContain, mustNotContain.phraseFailures[].phrasestringใช่ —
DeploymentCreate#
ฟิลด์ ชนิด จำเป็น คำอธิบาย entryKindstringใช่ slack, slack_channel or line; values may be added later.entryRefstringใช่ The entry point in the channel's own terms, as createDeployment describes. agentAgentConfig ไม่ —
DeployedAgentReplace#
ฟิลด์ ชนิด จำเป็น คำอธิบาย agentAgentConfig ใช่ — expectedRevisionintegerใช่ The revision this replaces, as the deployment answered it; 0 for the first.
DeployedAgent#
ฟิลด์ ชนิด จำเป็น คำอธิบาย agentRefstring หรือ nullใช่ The deployed configuration's ref, null when it named none. revisionintegerใช่ Counts the configurations deployed to this entry; the next replacement names it. deployedAtstring (date-time)ใช่ —
Deployment#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — entryKindstringใช่ — entryRefstringใช่ — statusstringใช่ active or disabled; clients tolerate values added later.responderstringใช่ application, a registered application answers the entry; agent, an assistant the console deployed. Clients tolerate values added later.applicationIdstring หรือ nullใช่ The registered application that answers the entry, null for an assistant. thisApplicationbooleanใช่ The calling installation's application answers the entry. agentDeployedAgent หรือ nullใช่ 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)ใช่ —
DeploymentPage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย nextCursorstring หรือ nullไม่ Absent or null on the last page. itemsDeployment []ใช่ —
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.
ฟิลด์ ชนิด จำเป็น คำอธิบาย refstringไม่ The application's own id for the agent and its version, opaque to the platform; answered back as agentRef. namestringใช่ — instructionsstringใช่ — modelstringใช่ "auto" for the workspace's default, or a model the workspace may use (GET …/models).skillsInlineSkill []ไม่ Standing instructions sent with the agent's, in order; together at most 6000 characters with their headings. toolsRunTool []ไม่ 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 ไม่ —
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.
ฟิลด์ ชนิด จำเป็น คำอธิบาย typestringใช่ ค่าที่เป็นไปได้: mcp, http. connectionIdstringไม่ — allowedToolsstring[]ไม่ — approvalstringใช่ ค่าที่เป็นไปได้: always, never. namestringไม่ — descriptionstringไม่ — inputSchemaobjectไม่ — urlstringไม่ — methodstringไม่ ค่าที่เป็นไปได้: 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.
ฟิลด์ ชนิด จำเป็น คำอธิบาย documentIdsstring[]ไม่ — qaIdsstring[]ไม่ Every listed entry the member may read is sent with each answer. scopestringไม่ ค่าที่เป็นไปได้: listed, workspace. contextProviderstringไม่ ค่าที่เป็นไปได้: self.
InlineSkill#
ฟิลด์ ชนิด จำเป็น คำอธิบาย namestringใช่ — instructionsstringใช่ —
ฟิลด์ ชนิด จำเป็น คำอธิบาย rolestringใช่ ค่าที่เป็นไปได้: user. contentRunTextPart []ใช่ Text parts, joined with a blank line; at most 4000 characters in all.
RunTextPart#
ฟิลด์ ชนิด จำเป็น คำอธิบาย typestringใช่ ค่าที่เป็นไปได้: text. textstringใช่ —
Run#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — conversationIdstringใช่ — statusstringใช่ 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. ค่าที่เป็นไปได้: queued, running, requires_action, completed, failed, refused.agentRefstring หรือ nullใช่ The configuration's ref; null when it had none. outputRunOutputMessage [] หรือ nullใช่ The answer, when completed. refusalstring หรือ nullใช่ Which limit refused the answer, when refused. metadataRunMetadata ไม่ — backgroundbooleanไม่ — cancelledbooleanไม่ The run was stopped (POST …/runs/{runId}/cancel) before it finished; its status is failed. replyToobject หรือ nullไม่ The event the run answers, when it was started with replyTo. replyTo.eventIdstringใช่ — replyTo.deliverystringใช่ 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. ค่าที่เป็นไปได้: pending, delivered, not_delivered.requiredActionnull หรือ RunRequiredAction ไม่ What the run waits on, when requires_action; else null. createdAtstring (date-time)ใช่ —
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#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — namestringใช่ The tool, as the agent called it (an MCP tool's name is prefixed mcp__). argumentsobjectใช่ What the agent passed. readOnlyboolean หรือ nullใช่ The risk the workspace declared for this tool: true read-only, false writing, null undeclared (approved as destructive). reasonstring หรือ nullใช่ Why the call waits for a person beyond the configuration asking, when there is one. createdAtstring (date-time)ใช่ —
ฟิลด์ ชนิด จำเป็น คำอธิบาย decisionstringใช่ ค่าที่เป็นไปได้: approve, reject.
RunOutputMessage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย rolestringใช่ ค่าที่เป็นไปได้: assistant. contentobject[]ใช่ — content[].typestringใช่ ค่าที่เป็นไปได้: text. content[].textstringใช่ —
UsageReport#
ฟิลด์ ชนิด จำเป็น คำอธิบาย sinceDaysintegerใช่ The window the report covers, in days. itemsAgentRefUsage []ใช่ — truncatedbooleanใช่ There are more groups than the report lists.
AgentRefUsage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย agentRefstring หรือ nullใช่ The configuration's ref; null for configurations passed without one. kindstringใช่ run or evaluation. Clients tolerate values added later.turnsintegerใช่ Replies answered. modelCallsintegerใช่ Model calls made for those replies; a reply that calls tools makes several. inputTokensintegerใช่ Input tokens charged at the full rate (not read from or written to a cache). outputTokensintegerใช่ — cachedReadTokensintegerใช่ — cacheWriteTokensintegerใช่ — costnull หรือ UsageCost ใช่ What it cost at the workspace's prices; null for a member who may not read cost.
UsageCost#
ฟิลด์ ชนิด จำเป็น คำอธิบาย amountUsdnumberใช่ — pricingCompletebooleanใช่ 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[]ใช่ —
MemoryFact#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — kindstringใช่ standing or episodic. Clients tolerate values added later.bodystringใช่ One sentence, at most 1000 characters. sourceLabelstringใช่ Where it was learned, as the console names it. sourceTrustedbooleanใช่ — explicitbooleanใช่ Someone stated it deliberately, rather than an assistant inferring it. organizationWidebooleanใช่ — capturedAtstring (date-time)ใช่ —
MemoryRevision#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — opstringใช่ What the line records, such as edit or delete. Clients tolerate values added later. bodystringใช่ — authorAccountIdstring หรือ nullใช่ The member who made the change; null when an assistant made it. atstring (date-time)ใช่ —
MemoryNotebook#
MemoryFactEdit#
ฟิลด์ ชนิด จำเป็น คำอธิบาย expectedBodystringใช่ The fact's sentence as last read. bodystringใช่ —
TranscriptionCreate#
ฟิลด์ ชนิด จำเป็น คำอธิบาย audiostringใช่ A mono 16 kHz 16-bit PCM WAV of at most two minutes, base64-encoded.
Transcription#
ฟิลด์ ชนิด จำเป็น คำอธิบาย textstringใช่ —
OutreachSend#
ฟิลด์ ชนิด จำเป็น คำอธิบาย targetUserRefstringไม่ A person, by their Slack user id. Exactly one of this and targetChannelRef. targetChannelRefstringไม่ A channel, by its Slack id. Exactly one of this and targetUserRef. bodystringใช่ The message, at most 4000 characters. reasonstringใช่ Why it is sent, at most 300 characters; kept with the message.
OutreachMessage#
ฟิลด์ ชนิด จำเป็น คำอธิบาย idstringใช่ — channelIdstringใช่ The channel it was sent through. targetRefstringใช่ The Slack conversation it was posted to (a direct message's, for a person). bodystringใช่ — reasonstringใช่ — statusstringใช่ pending, sent, abandoned or unknown. Clients tolerate values added later.attemptsintegerใช่ — lastErrorstringใช่ Why the latest attempt failed; empty when none did. createdAtstring (date-time)ใช่ —
OutreachList#
ฟิลด์ ชนิด จำเป็น คำอธิบาย itemsOutreachMessage []ใช่ — truncatedbooleanใช่ The member has older sends in the workspace than the 50 that were read.
Gateway#
ฟิลด์ ชนิด จำเป็น คำอธิบาย enabledbooleanใช่ — operatorDisabledbooleanใช่ Agent Lab turned the Gateway off for this workspace. plannull หรือ GatewayPlan ใช่ Null while the Gateway is off, and for a member who may not read usage.
GatewayPlan#
ฟิลด์ ชนิด จำเป็น คำอธิบาย planstringใช่ The plan's name. Clients tolerate values added later. sourcestringใช่ Where the plan comes from. Clients tolerate values added later. includedRequestsinteger หรือ nullใช่ The requests the plan includes this month; null when it does not limit them. usedRequestsinteger หรือ nullใช่ The requests made this month; null when they are not counted. periodStartstring (date-time)ใช่ — periodEndstring (date-time)ใช่ — asOfstring (date-time)ใช่ — spendCapUsdnumber หรือ nullใช่ The plan's model-spend ceiling; null without one. spentUsdnumber หรือ nullใช่ All Gateway spend the workspace made; null when some of it has no price. creditnull หรือ GatewayCredit ใช่ The prepaid credit; null before the first credit.
GatewayCredit#
ฟิลด์ ชนิด จำเป็น คำอธิบาย creditedUsdnumberใช่ Every top-up, contract credit and redeemed code. spentUsdnumber หรือ nullใช่ What was drawn from it; null when some spend has no price. balanceUsdnumber หรือ nullใช่ What is left; null when the spend is not known.