Share Public API
Generated from the Celerp 2.4.0 OpenAPI schema, 16 September 2026.
GET /docs/import
Import Shared Doc
Recipient's Celerp fetches a shared doc from the sender's instance and imports it. Called by celerp.com/accept after probing that both instances are reachable. The doc is stored with status='received' - not auto-booked. Recipient reviews first.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
src | query | yes | string | Sender's Celerp public URL |
token | query | yes | string | Share token from sender |
Responses
| Status | Description | Body |
|---|---|---|
200 | Successful Response | -- |
422 | Validation Error | HTTPValidationError |
Example
curl -X GET http://localhost:8000/docs/import \
-H "Authorization: Bearer $TOKEN"POST /docs/import-bundle
Import Bundle Upload
Accept a .celerp bundle (JSON body or multipart file) and import as received doc. Used when p2p fetch is unavailable (sender on private network). Accepts: application/json body OR multipart/form-data with field 'bundle'.
Responses
| Status | Description | Body |
|---|---|---|
200 | Successful Response | -- |
Example
curl -X POST http://localhost:8000/docs/import-bundle \
-H "Authorization: Bearer $TOKEN"