Skip to main content

Authentication

In order to call any API method, you will need to identify yourself using one of the 3 secret keys.

Get your secret keys by creating a free account at Facturapi.

Using one of our libraries

Use the secret key when creating the client instance

const Facturapi = require('facturapi');
const facturapi = new Facturapi('<SECRET_KEY>');

Using your own HTTP client

Facturapi uses the HTTP authentication method Bearer Token.

The token to use is one of the 3 Secret Keys, explained in detail in the article on secret keys.

Each request must include your secret key in the Authorization header.

curl https://www.facturapi.io/v2/<endpoint_method> \
-H "Authorization: Bearer <SECRET_KEY>" \