---
title: "Validate an InboxKit API key and list its workspaces"
method: POST
path: "/mailboxes/inboxkit/connect/preview/"
tags: ["senders"]
---

# Validate an InboxKit API key and list its workspaces

`POST /mailboxes/inboxkit/connect/preview/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/mailboxes/inboxkit/connect/preview/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Nothing is stored; the workspaces feed the connect picker.

## Request body

- InboxkitConnectPreviewSchema
  - `api_key` string, required

## Response `200`

Successful Response

- InboxkitConnectPreviewResponseSchema
  - `workspaces` InboxkitWorkspaceReadSchema[], required
    - `name` string, required
    - `workspace_id` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: InboxKit rejected the API key.
- `500`: Internal server error.
- `502`: InboxKit could not be reached.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
