Users
Manage the user registry — create users, link cross-platform identities, mint tokens, merge duplicates, and triage unmapped senders
curl -X GET "http://localhost:3013/api/connector/discovery"{
"apiUrl": "string",
"appUrl": "string",
"connectUrl": "string"
}/api/connector/exchangeRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/connector/exchange" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'{
"token": "string",
"userId": "string",
"version": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/invitesAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/invites" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com" }'{
"user": {
"id": "string",
"name": "string",
"email": "string",
"role": "string",
"notes": "string",
"emailAliases": [],
"preferredChannel": "slack",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
},
"dailyBudgetUsd": 0,
"status": "invited",
"mergedIntoUserId": "string",
"avatar": {
"type": "lucide",
"icon": "string",
"color": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"identities": [
{
"kind": "string",
"externalId": "string"
}
],
"tokens": [
{
"id": "string",
"userId": "string",
"label": "string",
"tokenPreview": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
}
],
"recentEvents": [
{
"id": "string",
"userId": "string",
"eventType": "string",
"actor": "string",
"before": null,
"after": null,
"createdAt": "string"
}
]
},
"inviteUrl": "string",
"appUrl": "string",
"expiresAt": "string",
"apiReachable": "public"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/invites/exchangeRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/invites/exchange" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'{
"token": "string",
"userId": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/rbac/rolesAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
curl -X GET "http://localhost:3013/api/rbac/roles"{
"roles": [
{
"id": "string",
"name": "string",
"description": "string",
"isBuiltin": true,
"grantsAll": true,
"primary": true,
"verbs": [
"string"
]
}
]
}/api/usersAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
0 <= value <= 50Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/users"{
"users": [
{
"id": "string",
"name": "string",
"email": "string",
"role": "string",
"notes": "string",
"emailAliases": [],
"preferredChannel": "slack",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
},
"dailyBudgetUsd": 0,
"status": "invited",
"mergedIntoUserId": "string",
"avatar": {
"type": "lucide",
"icon": "string",
"color": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"identities": [
{
"kind": "string",
"externalId": "string"
}
],
"tokens": [
{
"id": "string",
"userId": "string",
"label": "string",
"tokenPreview": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
}
],
"recentEvents": [
{
"id": "string",
"userId": "string",
"eventType": "string",
"actor": "string",
"before": null,
"after": null,
"createdAt": "string"
}
]
}
]
}{
"error": "string",
"property1": null,
"property2": null
}/api/usersAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/users" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"user": {
"id": "string",
"name": "string",
"email": "string",
"role": "string",
"notes": "string",
"emailAliases": [],
"preferredChannel": "slack",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
},
"dailyBudgetUsd": 0,
"status": "invited",
"mergedIntoUserId": "string",
"avatar": {
"type": "lucide",
"icon": "string",
"color": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"identities": [
{
"kind": "string",
"externalId": "string"
}
],
"tokens": [
{
"id": "string",
"userId": "string",
"label": "string",
"tokenPreview": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
}
],
"recentEvents": [
{
"id": "string",
"userId": "string",
"eventType": "string",
"actor": "string",
"before": null,
"after": null,
"createdAt": "string"
}
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Query Parameters
0 <= value <= 200Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/users/string"{
"user": {
"id": "string",
"name": "string",
"email": "string",
"role": "string",
"notes": "string",
"emailAliases": [],
"preferredChannel": "slack",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
},
"dailyBudgetUsd": 0,
"status": "invited",
"mergedIntoUserId": "string",
"avatar": {
"type": "lucide",
"icon": "string",
"color": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"identities": [
{
"kind": "string",
"externalId": "string"
}
],
"tokens": [
{
"id": "string",
"userId": "string",
"label": "string",
"tokenPreview": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
}
],
"recentEvents": [
{
"id": "string",
"userId": "string",
"eventType": "string",
"actor": "string",
"before": null,
"after": null,
"createdAt": "string"
}
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:3013/api/users/string" \ -H "Content-Type: application/json" \ -d '{}'{
"user": {
"id": "string",
"name": "string",
"email": "string",
"role": "string",
"notes": "string",
"emailAliases": [],
"preferredChannel": "slack",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
},
"dailyBudgetUsd": 0,
"status": "invited",
"mergedIntoUserId": "string",
"avatar": {
"type": "lucide",
"icon": "string",
"color": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"identities": [
{
"kind": "string",
"externalId": "string"
}
],
"tokens": [
{
"id": "string",
"userId": "string",
"label": "string",
"tokenPreview": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
}
],
"recentEvents": [
{
"id": "string",
"userId": "string",
"eventType": "string",
"actor": "string",
"before": null,
"after": null,
"createdAt": "string"
}
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}/connector-codesAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/users/string/connector-codes" \ -H "Content-Type: application/json" \ -d '{}'{
"code": "string",
"expiresAt": "string",
"connectUrl": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}/eventsAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Query Parameters
1 <= value <= 200Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/users/string/events"{
"events": [
{
"id": "string",
"userId": "string",
"eventType": "string",
"actor": "string",
"before": null,
"after": null,
"createdAt": "string"
}
]
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}/identitiesAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/users/string/identities" \ -H "Content-Type: application/json" \ -d '{ "kind": "string", "externalId": "string" }'{
"identities": [
{
"kind": "string",
"externalId": "string"
}
]
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}/identities/{kind}/{externalId}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:3013/api/users/string/identities/string/string"{
"identities": [
{
"kind": "string",
"externalId": "string"
}
]
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}/mcp-tokensAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/users/string/mcp-tokens" \ -H "Content-Type: application/json" \ -d '{}'{
"plaintext": "string",
"token": {
"id": "string",
"userId": "string",
"label": "string",
"tokenPreview": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
},
"user": {
"id": "string",
"name": "string",
"email": "string",
"role": "string",
"notes": "string",
"emailAliases": [],
"preferredChannel": "slack",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
},
"dailyBudgetUsd": 0,
"status": "invited",
"mergedIntoUserId": "string",
"avatar": {
"type": "lucide",
"icon": "string",
"color": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"identities": [
{
"kind": "string",
"externalId": "string"
}
],
"tokens": [
{
"id": "string",
"userId": "string",
"label": "string",
"tokenPreview": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
}
],
"recentEvents": [
{
"id": "string",
"userId": "string",
"eventType": "string",
"actor": "string",
"before": null,
"after": null,
"createdAt": "string"
}
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}/mcp-tokens/{tokenId}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:3013/api/users/string/mcp-tokens/string"{
"user": {
"id": "string",
"name": "string",
"email": "string",
"role": "string",
"notes": "string",
"emailAliases": [],
"preferredChannel": "slack",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
},
"dailyBudgetUsd": 0,
"status": "invited",
"mergedIntoUserId": "string",
"avatar": {
"type": "lucide",
"icon": "string",
"color": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"identities": [
{
"kind": "string",
"externalId": "string"
}
],
"tokens": [
{
"id": "string",
"userId": "string",
"label": "string",
"tokenPreview": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
}
],
"recentEvents": [
{
"id": "string",
"userId": "string",
"eventType": "string",
"actor": "string",
"before": null,
"after": null,
"createdAt": "string"
}
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}/mergeAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/users/string/merge" \ -H "Content-Type: application/json" \ -d '{ "sourceUserId": "string" }'{
"job": {
"id": "string",
"sourceUserId": "string",
"targetUserId": "string",
"status": "pending",
"phase": "string",
"progress": {
"property1": 0,
"property2": 0
},
"error": "string",
"attempts": 0,
"nextAttemptAt": "string",
"createdAt": "string",
"startedAt": "string",
"finishedAt": "string"
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}/rolesAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
1 <= lengthResponse Body
application/json
application/json
curl -X GET "http://localhost:3013/api/users/string/roles"{
"userId": "string",
"roles": [
{
"id": "string",
"name": "string",
"description": "string",
"isBuiltin": true,
"grantsAll": true,
"primary": true,
"verbs": [
"string"
]
}
]
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/{id}/rolesAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "http://localhost:3013/api/users/string/roles" \ -H "Content-Type: application/json" \ -d '{ "roles": [ "string" ] }'{
"userId": "string",
"roles": [
{
"id": "string",
"name": "string",
"description": "string",
"isBuiltin": true,
"grantsAll": true,
"primary": true,
"verbs": [
"string"
]
}
]
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/merge-jobsAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
"pending" | "running" | "done" | "failed"1 <= value <= 200Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/users/merge-jobs"{
"jobs": [
{
"id": "string",
"sourceUserId": "string",
"targetUserId": "string",
"status": "pending",
"phase": "string",
"progress": {
"property1": 0,
"property2": 0
},
"error": "string",
"attempts": 0,
"nextAttemptAt": "string",
"createdAt": "string",
"startedAt": "string",
"finishedAt": "string"
}
]
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/merge-jobs/{jobId}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/users/merge-jobs/string"{
"job": {
"id": "string",
"sourceUserId": "string",
"targetUserId": "string",
"status": "pending",
"phase": "string",
"progress": {
"property1": 0,
"property2": 0
},
"error": "string",
"attempts": 0,
"nextAttemptAt": "string",
"createdAt": "string",
"startedAt": "string",
"finishedAt": "string"
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/unmappedAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
1 <= value <= 1000"true" | "false""true" | "false"Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/users/unmapped"{
"unmapped": [
{
"kind": "string",
"externalId": "string",
"lastSeenAt": "string",
"count": 0,
"sampleEventType": "string",
"sampleContext": null,
"dismissedAt": "string",
"dismissedBy": "string"
}
]
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/unmapped/{kind}/{externalId}/resolveAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/users/unmapped/string/string/resolve" \ -H "Content-Type: application/json" \ -d '{ "userId": "string" }'{
"user": {
"id": "string",
"name": "string",
"email": "string",
"role": "string",
"notes": "string",
"emailAliases": [],
"preferredChannel": "slack",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
},
"dailyBudgetUsd": 0,
"status": "invited",
"mergedIntoUserId": "string",
"avatar": {
"type": "lucide",
"icon": "string",
"color": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"identities": [
{
"kind": "string",
"externalId": "string"
}
],
"tokens": [
{
"id": "string",
"userId": "string",
"label": "string",
"tokenPreview": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
}
],
"recentEvents": [
{
"id": "string",
"userId": "string",
"eventType": "string",
"actor": "string",
"before": null,
"after": null,
"createdAt": "string"
}
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/unmapped/dismissAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/users/unmapped/dismiss" \ -H "Content-Type: application/json" \ -d '{ "identities": [ { "kind": "string", "externalId": "string" } ] }'{
"dismissed": 0
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/users/unmapped/restoreAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/users/unmapped/restore" \ -H "Content-Type: application/json" \ -d '{ "identities": [ { "kind": "string", "externalId": "string" } ] }'{
"restored": 0
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/whoamiAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/whoami"{
"kind": "operator",
"user": {
"id": "string",
"name": "string",
"email": "string",
"role": "string",
"notes": "string",
"emailAliases": [],
"preferredChannel": "slack",
"timezone": "string",
"metadata": {
"property1": null,
"property2": null
},
"dailyBudgetUsd": 0,
"status": "invited",
"mergedIntoUserId": "string",
"avatar": {
"type": "lucide",
"icon": "string",
"color": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z"
},
"grants": {
"grantsAll": true,
"verbs": [
"string"
],
"roles": [
"string"
]
},
"sessionReadAll": true
}{
"error": "string",
"property1": null,
"property2": null
}curl -X GET "http://localhost:3013/invite/string"{
"error": "string",
"property1": null,
"property2": null
}