Build with the REST API
For scheduled syncs, reconciliation jobs and custom integrations.
- Create an API project in Clara with the permissions your integration needs. Store its credentials securely.
- Use your client certificate and private key for mTLS, then obtain an OAuth 2.0 access token.
- Request the first page of transactions. Follow pagination when exporting more records.
curl --fail-with-body \
--cert "$CLARA_CLIENT_CERT" \
--key "$CLARA_PRIVATE_KEY" \
--header "Authorization: Bearer $CLARA_ACCESS_TOKEN" \
"https://public-api.mx.clara.com/api/v3/transactions?page=0&size=10"CLARA_CLIENT_CERT and CLARA_PRIVATE_KEY are local file paths. CLARA_ACCESS_TOKEN is an OAuth access token. Keep all credentials in your secret manager or runtime environment.
Sandbox
curl --fail-with-body \
--cert "$CLARA_CLIENT_CERT" \
--key "$CLARA_PRIVATE_KEY" \
--header "Authorization: Bearer $CLARA_ACCESS_TOKEN" \
"https://public-api.mx.clara.com/api-test/v3/transactions?page=0&size=10"SandboxExpected result: HTTP 200 with content, totalElements, totalPages, size and number. page starts at 0. Sandbox access and credentials are separate; request access from integration support.