Sign inGet started
Back to blog
Get building

Create an account

Sign up, register a company, and generate the API or SDK key you'll authenticate with.

Everything starts at app.stackin.io — sign up and log in. There's no separate "developer" account: the same login is used for the dashboard where you manage companies, keys, and billing.

Before you can create a key, register a company — a company can't be skipped, it's the identity every document is issued under (tax id, address, tax regime). One account can hold multiple companies, each with its own keys; the credit balance belongs to the account and is shared by all of them.

In the sidebar, under Management → Integrations → API keys, name the key and choose its context: sdk if you're using one of the official client libraries, or api if you're calling the REST API directly with a Bearer token. Context is fixed for the key's whole lifetime and decides which host it is valid on — sdk.stackin.io or api.stackin.io; used on the wrong host, the key gets a 401.

Also choose the key's environment — homologation or production; the screen comes with homologation preselected — fixed at creation alongside the context. A company can hold up to 3 keys total, any mix of context and environment. A member invited for homologation only doesn't see the production option. See Environments for how that choice affects every request.

Copy the key immediately after creating it — it's shown once, at creation time, and can't be retrieved again. If it's lost, the fix is to revoke it and create a new one, not to look it up later.

One thing a key alone doesn't unlock: actually issuing a document requires the company's e-CNPJ digital certificate (.pfx/.p12) to be uploaded first, since that's what signs the document for the government authorizer — an e-CPF is refused. The key can be created and used for read-only calls beforehand, but issuance will fail without the certificate in place.

In production, each authorized document consumes credits from the account; homologation and rejected documents cost nothing. When you upload the certificate that proves the company's tax id, with the account's email confirmed, the account receives R$ 15 in credit — once per customer.