We use cookies to improve your experience and analyze site traffic. By clicking “Accept”, you agree to our use of cookies.

Learn more about our privacy practices
Corvo
Português

Authentication

Authenticate every request with an API key.

Keys have the format corvo_test_ or corvo_live_ followed by 40 lowercase hexadecimal characters.

Headers

HeaderUsage
X-API-KeyRequired for key authentication.
Content-Type: application/jsonJSON bodies.
Idempotency-KeyOptional on issuance and email requests; recommended for safe retries of those operations.

Certificate upload uses multipart/form-data. With curl -F, let curl generate the Content-Type with the boundary. Downloads return PDF or XML with no JSON envelope.

Environments

  • Companies, certificates and invoices are accessed in the key's persisted environment: test or live.
  • In live, issuance verifies the company, blocks and active certificate; credits and issuance limits also apply.
  • In test, issuance requires an existing company but skips the readiness and certificate checks of the live flow.
  • Webhook deliveries use the explicit ?environment=test|live filter; without it, they may return both of the account's environments, regardless of the key's environment.

Scopes

Code used in this referenceScope
Ffull_access
Iinvoices_issue
Vinvoices_view
RWinvoices_read_write

F accepts every operation listed. I allows issuing and requesting email. V allows fetching invoices, documents, events and download URLs. RW combines invoice issuance and fetching, company fetching, certificate listing, and fetching of webhooks/deliveries/statistics. RW does not allow modifying companies, certificates, webhooks, credits or plans. Even F only reaches API-key-enabled routes; scope permissions do not open other routes.

Example

bash

export BASE_URL='https://api.corvo.tech/v1'
export CORVO_API_KEY='corvo_test_your_key'

curl "$BASE_URL/companies" -H "X-API-Key: $CORVO_API_KEY"