Prerequisites
- A Portão 3 account. Your account manager provides either user credentials (email and password) or API client credentials (
client_id/client_secret) for server-to-server integrations. - Your
realmIdandorganizationId, shared during onboarding. Tenant-scoped endpoints require both in the path.
Step 1: Get an access token
Authenticate against the Identity service. Both flows use the same endpoint and return the same token payload.- User credentials
- API client (server-to-server)
accessToken as your bearer token on every API request.
If your user has MFA enabled, the response contains a
challenge and a session instead of tokens. Complete the sign-in with POST /auth/confirm-mfa, sending your email, the one-time userCode from your authenticator app, and the session value returned by sign-in. The response contains your tokens.Step 2: Make your first call
Verify the token by fetching the authenticated user’s profile:200 response confirms your token works.
Step 3: Call a tenant-scoped endpoint
Most endpoints are scoped to your realm and organization. For example, list your billing contracts:403, check that the realmId and organizationId in the path match the tenant your credentials belong to.
Step 4: Refresh your token
Access tokens are short-lived. When one expires, exchange your refresh token for new tokens instead of signing in again:idToken in the body to refresh it at the same time.
Next steps
Browse the API Reference
Every endpoint across all Portão 3 services, with schemas and examples.
Get support
Questions about credentials, tenancy, or a specific endpoint? We can help.