REST API

Company Peers API

Generated from the Celerp 2.7.0 OpenAPI schema, 19 October 2026.

GET /company-peers/grants

List Peer Grants

Responses

StatusDescriptionBody
200Successful Response--

Example

curl -X GET http://localhost:8000/company-peers/grants \
  -H "Authorization: Bearer $TOKEN"

POST /company-peers/grants

Create Peer Grant

Request body

FieldTypeRequiredDescription
source_company_idstringyesSource Company Id
labelstringyesLabel
firmstringyesFirm
scopesarray of stringyesScopes

Responses

StatusDescriptionBody
201Successful Response--
422Validation ErrorHTTPValidationError

Example

curl -X POST http://localhost:8000/company-peers/grants \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ ... }'

POST /company-peers/grants/{grant_id}/renew

Renew Peer Grant

Parameters

NameInRequiredTypeDescription
grant_idpathyesstring--

Responses

StatusDescriptionBody
200Successful Response--
422Validation ErrorHTTPValidationError

Example

curl -X POST http://localhost:8000/company-peers/grants/:grant_id/renew \
  -H "Authorization: Bearer $TOKEN"

POST /company-peers/grants/{grant_id}/revoke

Revoke Peer Grant

Parameters

NameInRequiredTypeDescription
grant_idpathyesstring--

Responses

StatusDescriptionBody
200Successful Response--
422Validation ErrorHTTPValidationError

Example

curl -X POST http://localhost:8000/company-peers/grants/:grant_id/revoke \
  -H "Authorization: Bearer $TOKEN"

GET /company-peers/verify

Verify Peer Grant

Parameters

NameInRequiredTypeDescription
source_company_idqueryyesstring--
authorizationheader--string--

Responses

StatusDescriptionBody
200Successful Response--
422Validation ErrorHTTPValidationError

Example

curl -X GET http://localhost:8000/company-peers/verify \
  -H "Authorization: Bearer $TOKEN"