Skip to content

Connections

List integrations and start an OAuth connection.

List connections

GET/v1/connections/
config:read
Response fields (200)
FieldTypeNotes
datarequiredobject[]—
data[].account_labelstring | nullread-only
data[].categorystringread-only
data[].connected_atstring (date-time) | nullread-only
data[].idstringread-only
data[].providerstringread-only
data[].statusstringread-only
next_cursorrequiredstring | null—

Responses

  • 200Success
  • 400The 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/v1/connections/
connections:writeIdempotency-Key required

Parameters

NameInTypeNotes
Idempotency-Keyrequiredheaderstring (uuid)UUID4 identifying one intended write. Reuse it only when retrying that same write.

Request body

FieldTypeNotes
providerrequiredstringone of calendly
Response fields (201)
FieldTypeNotes
connect_urlstringread-only
expires_atstring (date-time)read-only
providerstringread-only

Responses

  • 201Success
  • 400The 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"}'