REST API

Company Peers API

Generated from the Celerp 2.9.0 OpenAPI schema, .

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_idpathyesstringIdentifier of the company-to-company access grant to renew.

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_idpathyesstringIdentifier of the company-to-company access grant to revoke.

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_idqueryyesstringIdentifier of the source company whose access grant is being verified.
authorizationheader--stringAuthorization credential supplied for verification of the company access grant.

Responses

StatusDescriptionBody
200Successful Response--
422Validation ErrorHTTPValidationError

Example

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