agent-swarm.devagent-swarm.dev

Users

Manage the user registry — create users, link cross-platform identities, mint tokens, merge duplicates, and triage unmapped senders

GET/api/connector/discovery

Response Body

application/json

curl -X GET "http://localhost:3013/api/connector/discovery"
{
  "apiUrl": "string",
  "appUrl": "string",
  "connectUrl": "string"
}
POST/api/connector/exchange

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/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
}
POST/api/invites

Authorization

bearerAuth
AuthorizationBearer <token>

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
}
POST/api/invites/exchange

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/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
}
GET/api/rbac/roles

Authorization

bearerAuth
AuthorizationBearer <token>

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"
      ]
    }
  ]
}
GET/api/users

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

recentEvents?|
Range0 <= value <= 50

Response 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
}
POST/api/users

Authorization

bearerAuth
AuthorizationBearer <token>

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
}
GET/api/users/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Query Parameters

recentEvents?|
Range0 <= value <= 200

Response 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
}
PATCH/api/users/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

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
}
POST/api/users/{id}/connector-codes

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

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
}
GET/api/users/{id}/events

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Query Parameters

limit?integer
Range1 <= value <= 200
before?string

Response 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
}
POST/api/users/{id}/identities

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

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
}
DELETE/api/users/{id}/identities/{kind}/{externalId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
kind*string
externalId*string

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
}
POST/api/users/{id}/mcp-tokens

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

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
}
DELETE/api/users/{id}/mcp-tokens/{tokenId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
tokenId*string

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
}
POST/api/users/{id}/merge

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

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
}
GET/api/users/{id}/roles

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Length1 <= length

Response 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
}
PUT/api/users/{id}/roles

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Length1 <= length

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 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
}
GET/api/users/merge-jobs

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

status?string
Value in"pending" | "running" | "done" | "failed"
limit?integer
Range1 <= value <= 200

Response 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
}
GET/api/users/merge-jobs/{jobId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

jobId*string

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
}
GET/api/users/unmapped

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

kind?string
limit?integer
Range1 <= value <= 1000
dismissed?string
Value in"true" | "false"
includeBots?string
Value in"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
}
POST/api/users/unmapped/{kind}/{externalId}/resolve

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

kind*string
externalId*string

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
}
POST/api/users/unmapped/dismiss

Authorization

bearerAuth
AuthorizationBearer <token>

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
}
POST/api/users/unmapped/restore

Authorization

bearerAuth
AuthorizationBearer <token>

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
}
GET/api/whoami

Authorization

bearerAuth
AuthorizationBearer <token>

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
}
GET/invite/{code}

Path Parameters

code*string

Response Body

application/json

curl -X GET "http://localhost:3013/invite/string"
Empty
{
  "error": "string",
  "property1": null,
  "property2": null
}