@agentmc/api 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +197 -0
- package/bin/agentmc-api.mjs +8 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +6617 -0
- package/dist/cli.js.map +1 -0
- package/dist/generated/operations.d.ts +5039 -0
- package/dist/generated/operations.js +6366 -0
- package/dist/generated/operations.js.map +1 -0
- package/dist/index.d.ts +10618 -0
- package/dist/index.js +6517 -0
- package/dist/index.js.map +1 -0
- package/docs/operations/README.md +50 -0
- package/docs/operations/agentConnectedInstructions.md +127 -0
- package/docs/operations/agentHeartbeat.md +266 -0
- package/docs/operations/authenticateAgentRealtimeSocket.md +176 -0
- package/docs/operations/claimAgentRealtimeSession.md +168 -0
- package/docs/operations/closeAgentRealtimeSession.md +201 -0
- package/docs/operations/commentWorkspaceCalendarItem.md +163 -0
- package/docs/operations/connectAgent.md +199 -0
- package/docs/operations/createAgentBrief.md +215 -0
- package/docs/operations/createAgentRealtimeSignal.md +224 -0
- package/docs/operations/createBoard.md +160 -0
- package/docs/operations/createBoardColumn.md +163 -0
- package/docs/operations/createTask.md +195 -0
- package/docs/operations/createTaskComment.md +176 -0
- package/docs/operations/createWorkspaceCalendarItem.md +234 -0
- package/docs/operations/deleteAgentBrief.md +145 -0
- package/docs/operations/deleteBoard.md +126 -0
- package/docs/operations/deleteBoardColumn.md +155 -0
- package/docs/operations/deleteTask.md +126 -0
- package/docs/operations/deleteTaskComment.md +128 -0
- package/docs/operations/deleteWorkspaceCalendarItem.md +126 -0
- package/docs/operations/index.json +6358 -0
- package/docs/operations/listAgentBriefs.md +207 -0
- package/docs/operations/listAgentRealtimeRequestedSessions.md +166 -0
- package/docs/operations/listAgentRealtimeSignals.md +185 -0
- package/docs/operations/listAgents.md +162 -0
- package/docs/operations/listBoards.md +142 -0
- package/docs/operations/listHosts.md +156 -0
- package/docs/operations/listLogs.md +140 -0
- package/docs/operations/listNotifications.md +179 -0
- package/docs/operations/listTaskComments.md +170 -0
- package/docs/operations/listTasks.md +158 -0
- package/docs/operations/listTeamMembers.md +137 -0
- package/docs/operations/markAllNotificationsRead.md +107 -0
- package/docs/operations/markNotificationRead.md +160 -0
- package/docs/operations/showBoard.md +134 -0
- package/docs/operations/showHost.md +172 -0
- package/docs/operations/showTask.md +140 -0
- package/docs/operations/showWorkspaceCalendarItem.md +165 -0
- package/docs/operations/updateAgentBrief.md +257 -0
- package/docs/operations/updateBoard.md +169 -0
- package/docs/operations/updateBoardColumn.md +165 -0
- package/docs/operations/updateTask.md +175 -0
- package/docs/operations/updateTaskComment.md +174 -0
- package/docs/operations/updateWorkspaceCalendarItem.md +204 -0
- package/docs/operations/workspaceCalendar.md +185 -0
- package/examples/http/agentConnectedInstructions.ts +19 -0
- package/examples/http/agentHeartbeat.ts +67 -0
- package/examples/http/authenticateAgentRealtimeSocket.ts +24 -0
- package/examples/http/claimAgentRealtimeSession.ts +21 -0
- package/examples/http/closeAgentRealtimeSession.ts +28 -0
- package/examples/http/commentWorkspaceCalendarItem.ts +24 -0
- package/examples/http/connectAgent.ts +47 -0
- package/examples/http/createAgentBrief.ts +34 -0
- package/examples/http/createAgentRealtimeSignal.ts +33 -0
- package/examples/http/createBoard.ts +19 -0
- package/examples/http/createBoardColumn.ts +23 -0
- package/examples/http/createTask.ts +24 -0
- package/examples/http/createTaskComment.ts +24 -0
- package/examples/http/createWorkspaceCalendarItem.ts +31 -0
- package/examples/http/deleteAgentBrief.ts +19 -0
- package/examples/http/deleteBoard.ts +19 -0
- package/examples/http/deleteBoardColumn.ts +22 -0
- package/examples/http/deleteTask.ts +19 -0
- package/examples/http/deleteTaskComment.ts +20 -0
- package/examples/http/deleteWorkspaceCalendarItem.ts +19 -0
- package/examples/http/listAgentBriefs.ts +22 -0
- package/examples/http/listAgentRealtimeRequestedSessions.ts +22 -0
- package/examples/http/listAgentRealtimeSignals.ts +25 -0
- package/examples/http/listAgents.ts +20 -0
- package/examples/http/listBoards.ts +21 -0
- package/examples/http/listHosts.ts +21 -0
- package/examples/http/listLogs.ts +19 -0
- package/examples/http/listNotifications.ts +20 -0
- package/examples/http/listTaskComments.ts +22 -0
- package/examples/http/listTasks.ts +26 -0
- package/examples/http/listTeamMembers.ts +20 -0
- package/examples/http/markAllNotificationsRead.ts +15 -0
- package/examples/http/markNotificationRead.ts +20 -0
- package/examples/http/showBoard.ts +19 -0
- package/examples/http/showHost.ts +22 -0
- package/examples/http/showTask.ts +19 -0
- package/examples/http/showWorkspaceCalendarItem.ts +19 -0
- package/examples/http/updateAgentBrief.ts +47 -0
- package/examples/http/updateBoard.ts +25 -0
- package/examples/http/updateBoardColumn.ts +24 -0
- package/examples/http/updateTask.ts +25 -0
- package/examples/http/updateTaskComment.ts +23 -0
- package/examples/http/updateWorkspaceCalendarItem.ts +27 -0
- package/examples/http/workspaceCalendar.ts +27 -0
- package/package.json +64 -0
- package/spec/openapi.filtered.json +12925 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# createAgentBrief
|
|
2
|
+
|
|
3
|
+
- Method: `POST`
|
|
4
|
+
- Path: `/briefs`
|
|
5
|
+
- Summary: Upsert a brief parent by key and append one child entry.
|
|
6
|
+
- Auth: ApiKeyAuth OR AgentBearerAuth OR BearerAuth
|
|
7
|
+
|
|
8
|
+
## Description
|
|
9
|
+
|
|
10
|
+
On first sync for a key, AgentMC creates a parent brief and this first child. On later syncs for the same key, AgentMC reuses the parent and appends a new child entry.
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
None.
|
|
15
|
+
|
|
16
|
+
## Request Example
|
|
17
|
+
|
|
18
|
+
### application/json
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"brief": {
|
|
22
|
+
"key": "daily-operations",
|
|
23
|
+
"name": "Daily Operations Brief",
|
|
24
|
+
"summary": "Operations handoff digest for the morning window.",
|
|
25
|
+
"timezone": "America/Los_Angeles",
|
|
26
|
+
"headline": "3 overdue tasks | 4 upcoming events",
|
|
27
|
+
"content_markdown": "## Highlights\n- Elevated API error rate\n- Two incidents resolved",
|
|
28
|
+
"meta": {
|
|
29
|
+
"external_source": "daily-ops-job",
|
|
30
|
+
"schedule": "0 7 * * *"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"source": {
|
|
34
|
+
"agent_id": 42,
|
|
35
|
+
"meta": {
|
|
36
|
+
"runtime": "codex"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Success Responses
|
|
43
|
+
|
|
44
|
+
### 201 (application/json)
|
|
45
|
+
Brief report accepted.
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"brief": {
|
|
50
|
+
"id": 42,
|
|
51
|
+
"team_id": 42,
|
|
52
|
+
"agent_id": 42,
|
|
53
|
+
"external_key": "daily-operations",
|
|
54
|
+
"external_id": "ops-brief-2026-02-22",
|
|
55
|
+
"name": "Example Name",
|
|
56
|
+
"timezone": "America/Los_Angeles",
|
|
57
|
+
"summary": "Morning operations handoff digest.",
|
|
58
|
+
"include_sections": [
|
|
59
|
+
{
|
|
60
|
+
"key": "value"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"headline": "3 overdue tasks | 4 upcoming events",
|
|
64
|
+
"content_markdown": "## Highlights\n- Elevated API error rate",
|
|
65
|
+
"content_json": {
|
|
66
|
+
"key": "value"
|
|
67
|
+
},
|
|
68
|
+
"source_meta": {
|
|
69
|
+
"key": "value"
|
|
70
|
+
},
|
|
71
|
+
"received_at": "2026-02-22T17:21:00Z",
|
|
72
|
+
"generated_at": "2026-02-22T17:21:00Z",
|
|
73
|
+
"read_by_user_id": 42,
|
|
74
|
+
"latest_entry_id": 42,
|
|
75
|
+
"entries_count": 0,
|
|
76
|
+
"latest_entry": {
|
|
77
|
+
"id": 42,
|
|
78
|
+
"agent_id": 42,
|
|
79
|
+
"external_id": "ops-brief-2026-02-22",
|
|
80
|
+
"name": "Example Name",
|
|
81
|
+
"timezone": "America/Los_Angeles",
|
|
82
|
+
"summary": "Morning operations handoff digest.",
|
|
83
|
+
"include_sections": [
|
|
84
|
+
{
|
|
85
|
+
"key": "value"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"headline": "3 overdue tasks | 4 upcoming events",
|
|
89
|
+
"content_markdown": "## Highlights\n- Elevated API error rate",
|
|
90
|
+
"content_json": {
|
|
91
|
+
"key": "value"
|
|
92
|
+
},
|
|
93
|
+
"source_meta": {
|
|
94
|
+
"key": "value"
|
|
95
|
+
},
|
|
96
|
+
"received_at": "2026-02-22T17:21:00Z",
|
|
97
|
+
"generated_at": "2026-02-22T17:21:00Z",
|
|
98
|
+
"created_at": "2026-02-22T17:21:00Z",
|
|
99
|
+
"updated_at": "2026-02-22T17:21:00Z"
|
|
100
|
+
},
|
|
101
|
+
"created_at": "2026-02-22T17:21:00Z",
|
|
102
|
+
"updated_at": "2026-02-22T17:21:00Z"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
## Error Responses
|
|
109
|
+
|
|
110
|
+
### 401 (application/json)
|
|
111
|
+
Missing or invalid credentials.
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"error": {
|
|
116
|
+
"code": "validation.failed",
|
|
117
|
+
"message": "Validation failed.",
|
|
118
|
+
"details": {
|
|
119
|
+
"fields": {
|
|
120
|
+
"title": [
|
|
121
|
+
"The title field is required."
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### 403 (application/json)
|
|
130
|
+
Forbidden.
|
|
131
|
+
|
|
132
|
+
```json
|
|
133
|
+
{
|
|
134
|
+
"error": {
|
|
135
|
+
"code": "validation.failed",
|
|
136
|
+
"message": "Validation failed.",
|
|
137
|
+
"details": {
|
|
138
|
+
"fields": {
|
|
139
|
+
"title": [
|
|
140
|
+
"The title field is required."
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### 422 (application/json)
|
|
149
|
+
Validation failed.
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"error": {
|
|
154
|
+
"code": "validation.failed",
|
|
155
|
+
"message": "Validation failed.",
|
|
156
|
+
"details": {
|
|
157
|
+
"fields": {
|
|
158
|
+
"title": [
|
|
159
|
+
"The title field is required."
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
## SDK Example
|
|
169
|
+
|
|
170
|
+
```ts
|
|
171
|
+
import { AgentMCApi } from "@agentmc/api";
|
|
172
|
+
|
|
173
|
+
const client = new AgentMCApi({
|
|
174
|
+
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
const result = await client.operations.createAgentBrief({
|
|
178
|
+
"body": {
|
|
179
|
+
"brief": {
|
|
180
|
+
"key": "daily-operations",
|
|
181
|
+
"name": "Daily Operations Brief",
|
|
182
|
+
"summary": "Operations handoff digest for the morning window.",
|
|
183
|
+
"timezone": "America/Los_Angeles",
|
|
184
|
+
"headline": "3 overdue tasks | 4 upcoming events",
|
|
185
|
+
"content_markdown": "## Highlights\n- Elevated API error rate\n- Two incidents resolved",
|
|
186
|
+
"meta": {
|
|
187
|
+
"external_source": "daily-ops-job",
|
|
188
|
+
"schedule": "0 7 * * *"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"source": {
|
|
192
|
+
"agent_id": 42,
|
|
193
|
+
"meta": {
|
|
194
|
+
"runtime": "codex"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
if (result.error) {
|
|
201
|
+
console.error(result.status, result.error);
|
|
202
|
+
} else {
|
|
203
|
+
console.log(result.data);
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## cURL Example
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
curl -X POST "https://agentmc.ai/api/v1/briefs" \\
|
|
211
|
+
-H "Accept: application/json" \\
|
|
212
|
+
-H "X-Api-Key: $AGENTMC_API_KEY" \\
|
|
213
|
+
-H "Content-Type: application/json" \\
|
|
214
|
+
--data-raw "{\"brief\":{\"key\":\"daily-operations\",\"name\":\"Daily Operations Brief\",\"summary\":\"Operations handoff digest for the morning window.\",\"timezone\":\"America/Los_Angeles\",\"headline\":\"3 overdue tasks | 4 upcoming events\",\"content_markdown\":\"## Highlights\n- Elevated API error rate\n- Two incidents resolved\",\"meta\":{\"external_source\":\"daily-ops-job\",\"schedule\":\"0 7 * * *\"}},\"source\":{\"agent_id\":42,\"meta\":{\"runtime\":\"codex\"}}}"
|
|
215
|
+
```
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# createAgentRealtimeSignal
|
|
2
|
+
|
|
3
|
+
- Method: `POST`
|
|
4
|
+
- Path: `/agents/{agent}/realtime/sessions/{session}/signals`
|
|
5
|
+
- Summary: Publish one realtime event to a realtime browser session.
|
|
6
|
+
- Auth: ApiKeyAuth OR AgentBearerAuth OR BearerAuth
|
|
7
|
+
|
|
8
|
+
## Description
|
|
9
|
+
|
|
10
|
+
No additional description.
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| Name | In | Required | Description | Example |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| agent | path | yes | Agent identifier. | 1 |
|
|
17
|
+
| session | path | yes | Realtime session identifier. | 1 |
|
|
18
|
+
|
|
19
|
+
## Request Example
|
|
20
|
+
|
|
21
|
+
### application/json
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"type": "message",
|
|
25
|
+
"payload": {
|
|
26
|
+
"type": "chat.user",
|
|
27
|
+
"payload": {
|
|
28
|
+
"content": "Create a AgentMC task for this afternoon to draft the postmortem outline.",
|
|
29
|
+
"message_id": 512,
|
|
30
|
+
"timezone": "America/Los_Angeles",
|
|
31
|
+
"source": "agentmc_chat",
|
|
32
|
+
"intent_scope": "agentmc"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Success Responses
|
|
39
|
+
|
|
40
|
+
### 200 (application/json)
|
|
41
|
+
Realtime signal accepted.
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"data": {
|
|
46
|
+
"id": 42,
|
|
47
|
+
"team_id": 42,
|
|
48
|
+
"agent_id": 42,
|
|
49
|
+
"session_id": 42,
|
|
50
|
+
"sender": "agent",
|
|
51
|
+
"type": "example",
|
|
52
|
+
"payload": {
|
|
53
|
+
"key": "value"
|
|
54
|
+
},
|
|
55
|
+
"created_at": "2026-02-22T17:21:00Z",
|
|
56
|
+
"updated_at": "2026-02-22T17:21:00Z"
|
|
57
|
+
},
|
|
58
|
+
"session": {
|
|
59
|
+
"id": 42,
|
|
60
|
+
"team_id": 42,
|
|
61
|
+
"agent_id": 42,
|
|
62
|
+
"requested_by_user_id": 42,
|
|
63
|
+
"status": "requested",
|
|
64
|
+
"claimed_at": "2026-02-22T17:21:00Z",
|
|
65
|
+
"opened_at": "2026-02-22T17:21:00Z",
|
|
66
|
+
"closed_at": "2026-02-22T17:21:00Z",
|
|
67
|
+
"expires_at": "2026-02-22T17:21:00Z",
|
|
68
|
+
"last_browser_heartbeat_at": "2026-02-22T17:21:00Z",
|
|
69
|
+
"last_agent_heartbeat_at": "2026-02-22T17:21:00Z",
|
|
70
|
+
"meta": {
|
|
71
|
+
"key": "value"
|
|
72
|
+
},
|
|
73
|
+
"created_at": "2026-02-22T17:21:00Z",
|
|
74
|
+
"updated_at": "2026-02-22T17:21:00Z"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## Error Responses
|
|
81
|
+
|
|
82
|
+
### 401 (application/json)
|
|
83
|
+
Missing or invalid credentials.
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"error": {
|
|
88
|
+
"code": "validation.failed",
|
|
89
|
+
"message": "Validation failed.",
|
|
90
|
+
"details": {
|
|
91
|
+
"fields": {
|
|
92
|
+
"title": [
|
|
93
|
+
"The title field is required."
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### 403 (application/json)
|
|
102
|
+
Forbidden.
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"error": {
|
|
107
|
+
"code": "validation.failed",
|
|
108
|
+
"message": "Validation failed.",
|
|
109
|
+
"details": {
|
|
110
|
+
"fields": {
|
|
111
|
+
"title": [
|
|
112
|
+
"The title field is required."
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### 404 (application/json)
|
|
121
|
+
Resource not found.
|
|
122
|
+
|
|
123
|
+
```json
|
|
124
|
+
{
|
|
125
|
+
"error": {
|
|
126
|
+
"code": "validation.failed",
|
|
127
|
+
"message": "Validation failed.",
|
|
128
|
+
"details": {
|
|
129
|
+
"fields": {
|
|
130
|
+
"title": [
|
|
131
|
+
"The title field is required."
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### 409 (application/json)
|
|
140
|
+
Conflict.
|
|
141
|
+
|
|
142
|
+
```json
|
|
143
|
+
{
|
|
144
|
+
"error": {
|
|
145
|
+
"code": "validation.failed",
|
|
146
|
+
"message": "Validation failed.",
|
|
147
|
+
"details": {
|
|
148
|
+
"fields": {
|
|
149
|
+
"title": [
|
|
150
|
+
"The title field is required."
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### 422 (application/json)
|
|
159
|
+
Validation failed.
|
|
160
|
+
|
|
161
|
+
```json
|
|
162
|
+
{
|
|
163
|
+
"error": {
|
|
164
|
+
"code": "validation.failed",
|
|
165
|
+
"message": "Validation failed.",
|
|
166
|
+
"details": {
|
|
167
|
+
"fields": {
|
|
168
|
+
"title": [
|
|
169
|
+
"The title field is required."
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
## SDK Example
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
import { AgentMCApi } from "@agentmc/api";
|
|
182
|
+
|
|
183
|
+
const client = new AgentMCApi({
|
|
184
|
+
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
const result = await client.operations.createAgentRealtimeSignal({
|
|
188
|
+
"params": {
|
|
189
|
+
"path": {
|
|
190
|
+
"agent": 1,
|
|
191
|
+
"session": 1
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"body": {
|
|
195
|
+
"type": "message",
|
|
196
|
+
"payload": {
|
|
197
|
+
"type": "chat.user",
|
|
198
|
+
"payload": {
|
|
199
|
+
"content": "Create a AgentMC task for this afternoon to draft the postmortem outline.",
|
|
200
|
+
"message_id": 512,
|
|
201
|
+
"timezone": "America/Los_Angeles",
|
|
202
|
+
"source": "agentmc_chat",
|
|
203
|
+
"intent_scope": "agentmc"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
if (result.error) {
|
|
210
|
+
console.error(result.status, result.error);
|
|
211
|
+
} else {
|
|
212
|
+
console.log(result.data);
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## cURL Example
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
curl -X POST "https://agentmc.ai/api/v1/agents/1/realtime/sessions/1/signals" \\
|
|
220
|
+
-H "Accept: application/json" \\
|
|
221
|
+
-H "X-Api-Key: $AGENTMC_API_KEY" \\
|
|
222
|
+
-H "Content-Type: application/json" \\
|
|
223
|
+
--data-raw "{\"type\":\"message\",\"payload\":{\"type\":\"chat.user\",\"payload\":{\"content\":\"Create a AgentMC task for this afternoon to draft the postmortem outline.\",\"message_id\":512,\"timezone\":\"America/Los_Angeles\",\"source\":\"agentmc_chat\",\"intent_scope\":\"agentmc\"}}}"
|
|
224
|
+
```
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# createBoard
|
|
2
|
+
|
|
3
|
+
- Method: `POST`
|
|
4
|
+
- Path: `/boards`
|
|
5
|
+
- Summary: Create a board.
|
|
6
|
+
- Auth: ApiKeyAuth OR AgentBearerAuth OR BearerAuth
|
|
7
|
+
|
|
8
|
+
## Description
|
|
9
|
+
|
|
10
|
+
No additional description.
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
None.
|
|
15
|
+
|
|
16
|
+
## Request Example
|
|
17
|
+
|
|
18
|
+
### application/json
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"name": "Incident Response",
|
|
22
|
+
"description": "Tracks response tasks for active incidents.",
|
|
23
|
+
"visibility": "team"
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Success Responses
|
|
28
|
+
|
|
29
|
+
### 201 (application/json)
|
|
30
|
+
Board created.
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"data": {
|
|
35
|
+
"id": 42,
|
|
36
|
+
"team_id": 42,
|
|
37
|
+
"name": "Example Name",
|
|
38
|
+
"description": "Example description text.",
|
|
39
|
+
"visibility": "team",
|
|
40
|
+
"personal_owner_user_id": 42,
|
|
41
|
+
"created_by_user_id": 42,
|
|
42
|
+
"created_at": "2026-02-22T17:21:00Z",
|
|
43
|
+
"updated_at": "2026-02-22T17:21:00Z"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## Error Responses
|
|
50
|
+
|
|
51
|
+
### 401 (application/json)
|
|
52
|
+
Missing or invalid credentials.
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"error": {
|
|
57
|
+
"code": "validation.failed",
|
|
58
|
+
"message": "Validation failed.",
|
|
59
|
+
"details": {
|
|
60
|
+
"fields": {
|
|
61
|
+
"title": [
|
|
62
|
+
"The title field is required."
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 402 (application/json)
|
|
71
|
+
Plan limit reached.
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"error": {
|
|
76
|
+
"code": "validation.failed",
|
|
77
|
+
"message": "Validation failed.",
|
|
78
|
+
"details": {
|
|
79
|
+
"fields": {
|
|
80
|
+
"title": [
|
|
81
|
+
"The title field is required."
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### 403 (application/json)
|
|
90
|
+
Forbidden.
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"error": {
|
|
95
|
+
"code": "validation.failed",
|
|
96
|
+
"message": "Validation failed.",
|
|
97
|
+
"details": {
|
|
98
|
+
"fields": {
|
|
99
|
+
"title": [
|
|
100
|
+
"The title field is required."
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### 422 (application/json)
|
|
109
|
+
Validation failed.
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"error": {
|
|
114
|
+
"code": "validation.failed",
|
|
115
|
+
"message": "Validation failed.",
|
|
116
|
+
"details": {
|
|
117
|
+
"fields": {
|
|
118
|
+
"title": [
|
|
119
|
+
"The title field is required."
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
## SDK Example
|
|
129
|
+
|
|
130
|
+
```ts
|
|
131
|
+
import { AgentMCApi } from "@agentmc/api";
|
|
132
|
+
|
|
133
|
+
const client = new AgentMCApi({
|
|
134
|
+
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
const result = await client.operations.createBoard({
|
|
138
|
+
"body": {
|
|
139
|
+
"name": "Incident Response",
|
|
140
|
+
"description": "Tracks response tasks for active incidents.",
|
|
141
|
+
"visibility": "team"
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
if (result.error) {
|
|
146
|
+
console.error(result.status, result.error);
|
|
147
|
+
} else {
|
|
148
|
+
console.log(result.data);
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## cURL Example
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
curl -X POST "https://agentmc.ai/api/v1/boards" \\
|
|
156
|
+
-H "Accept: application/json" \\
|
|
157
|
+
-H "X-Api-Key: $AGENTMC_API_KEY" \\
|
|
158
|
+
-H "Content-Type: application/json" \\
|
|
159
|
+
--data-raw "{\"name\":\"Incident Response\",\"description\":\"Tracks response tasks for active incidents.\",\"visibility\":\"team\"}"
|
|
160
|
+
```
|