REST API
Connectors API
Configure and operate external integrations.
Generated from the Celerp 2.4.0 OpenAPI schema, 16 September 2026.
GET /connectors/
List Connectors
Responses
| Status | Description | Body |
|---|
200 | Successful Response | array of ConnectorInfo |
Example
curl -X GET http://localhost:8000/connectors/ \
-H "Authorization: Bearer $TOKEN"
GET /connectors/{connector_name}/access-token
Connector Access Token
Return a short-lived decrypted access token from the relay.
Returns the relay payload ({access_token, store_handle, ...}) on success,
else {"error": <code>, "detail": str} with error codes: not_connected,
session_invalid, subscription_required, relay_error.
Parameters
| Name | In | Required | Type | Description |
|---|
connector_name | path | yes | string | -- |
Responses
| Status | Description | Body |
|---|
200 | Successful Response | object |
422 | Validation Error | HTTPValidationError |
Example
curl -X GET http://localhost:8000/connectors/:connector_name/access-token \
-H "Authorization: Bearer $TOKEN"
POST /connectors/{connector_name}/credentials
Store Credentials
Validate API-key credentials against the store, then store them on the relay.
Returns {"ok": True} on success, else {"ok": False, "error": <code>, "detail": str}
with error codes: store_rejected, store_unreachable, subscription_required,
relay_not_https, relay_error.
Parameters
| Name | In | Required | Type | Description |
|---|
connector_name | path | yes | string | -- |
Request body
| Field | Type | Required | Description |
|---|
consumer_key | string | yes | Consumer Key |
consumer_secret | string | yes | Consumer Secret |
store_url | string, optional | -- | Store Url |
Responses
| Status | Description | Body |
|---|
200 | Successful Response | object |
422 | Validation Error | HTTPValidationError |
Example
curl -X POST http://localhost:8000/connectors/:connector_name/credentials \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
DELETE /connectors/{connector_name}/credentials
Revoke Credentials
Revoke stored connector credentials on the relay (disconnect).
A 404 from the relay means nothing was stored - already disconnected, so ok.
Parameters
| Name | In | Required | Type | Description |
|---|
connector_name | path | yes | string | -- |
Responses
| Status | Description | Body |
|---|
200 | Successful Response | object |
422 | Validation Error | HTTPValidationError |
Example
curl -X DELETE http://localhost:8000/connectors/:connector_name/credentials \
-H "Authorization: Bearer $TOKEN"
POST /connectors/{connector_name}/sync
Trigger Sync
Parameters
| Name | In | Required | Type | Description |
|---|
connector_name | path | yes | string | -- |
Request body
| Field | Type | Required | Description |
|---|
entity | SyncEntity | yes | -- |
access_token | string | yes | Access Token |
store_handle | string, optional | -- | Store Handle |
extra | object, optional | -- | Extra |
Responses
| Status | Description | Body |
|---|
200 | Successful Response | SyncResponse |
422 | Validation Error | HTTPValidationError |
Example
curl -X POST http://localhost:8000/connectors/:connector_name/sync \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'