Connections
List integrations and start an OAuth connection.
List connections
GET
config:read/v1/connections/Response fields (200)
| Field | Type | Notes |
|---|---|---|
datarequired | object[] | — |
data[].account_label | string | null | read-only |
data[].category | string | read-only |
data[].connected_at | string (date-time) | null | read-only |
data[].id | string | read-only |
data[].provider | string | read-only |
data[].status | string | read-only |
next_cursorrequired | string | null | — |
Responses
200Success400The request is invalid.401Authentication is missing, invalid, or revoked.403The authenticated identity lacks the required scope or capability.404The resource is unavailable or not visible to this organization.429The request-rate budget is exhausted.
Example request
curl
curl -X GET "https://api.themochi.app/v1/connections/" \
-H "Authorization: Bearer $MOCHI_API_KEY"Start a connection
POST
connections:writeIdempotency-Key required/v1/connections/Parameters
| Name | In | Type | Notes |
|---|---|---|---|
Idempotency-Keyrequired | header | string (uuid) | UUID4 identifying one intended write. Reuse it only when retrying that same write. |
Request body
| Field | Type | Notes |
|---|---|---|
providerrequired | string | one of calendly |
Response fields (201)
| Field | Type | Notes |
|---|---|---|
connect_url | string | read-only |
expires_at | string (date-time) | read-only |
provider | string | read-only |
Responses
201Success400The request is invalid.401Authentication is missing, invalid, or revoked.403The authenticated identity lacks the required scope or capability.404The resource is unavailable or not visible to this organization.409The write conflicts with current state or an identical request is still running.422The write contains fields outside its closed input schema.429The request-rate budget is exhausted.
Example request
curl
curl -X POST "https://api.themochi.app/v1/connections/" \
-H "Authorization: Bearer $MOCHI_API_KEY" \
-H "Idempotency-Key: $(uuidgen | tr A-Z a-z)" \
-H "Content-Type: application/json" \
-d '{"provider":"calendly"}'