Embedded credit API for Dinie partners. Enables customer registration, credit offer management, loan origination, and event delivery via webhooks.
- Exchange credentials for an access token
Dinie API (2026-03-01)
OAuth2 Client Credentials authentication and API key management.
Each client_id / client_secret pair represents an access credential. Exchange the credentials for a JWT token via POST /auth/token and send the token as Bearer in all requests. The token expires in 1 hour.
You can create multiple credentials for different environments and revoke them individually.
Request
Authenticates the partner using the OAuth2 Client Credentials flow. Send client_id and client_secret in the Authorization header (Basic Auth) to receive a JWT token. The token expires in 1 hour and must be sent as a Bearer token in all other requests. The SDKs handle token retrieval and renewal automatically.
- Mock serverhttps://dinie.nexaedge.dev/_mock/apis/openapi/auth/token
- Productionhttps://api.dinie.com.br/v3/auth/token
- Sandboxhttps://sandbox.api.dinie.com.br/v3/auth/token
- curl
- Python
- Node.js
- Ruby
curl -X POST https://api.dinie.com.br/v3/auth/token \
-u "$DINIE_CLIENT_ID:$DINIE_CLIENT_SECRET" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials"{ "access_token": "dinie_at_eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkaW5pZV9jaV81NTBlODQwMGUyOWI0MWQ0YTcxNjQ0NjY1NTQ0MDAwMCIsImV4cCI6MTcwOTU1NTYwMH0.abc123", "token_type": "bearer", "expires_in": 3600 }
Request
Creates a new credential pair (client_id + client_secret) for the partner. The client_secret is displayed only once in the response — store it securely. Use multiple credentials to separate environments (production, staging, development) or distinct internal systems.
- Mock serverhttps://dinie.nexaedge.dev/_mock/apis/openapi/auth/credentials
- Productionhttps://api.dinie.com.br/v3/auth/credentials
- Sandboxhttps://sandbox.api.dinie.com.br/v3/auth/credentials
- curl
- Python
- Node.js
- Ruby
curl -X POST https://api.dinie.com.br/v3/auth/credentials \
-H "Authorization: Bearer $DINIE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Chave de Produção",
"expires_at": "2027-03-04T00:00:00Z"
}'{ "id": "dinie_ci_550e8400e29b41d4a716446655440000", "client_id": "dinie_ci_550e8400e29b41d4a716446655440000", "name": "Chave de Produção", "status": "active", "client_secret": "dinie_cs_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6", "expires_at": "2027-03-04T00:00:00Z", "created_at": "2026-03-04T10:00:00Z", "updated_at": "2026-03-04T10:00:00Z", "last_used_at": null }
- Mock serverhttps://dinie.nexaedge.dev/_mock/apis/openapi/auth/credentials
- Productionhttps://api.dinie.com.br/v3/auth/credentials
- Sandboxhttps://sandbox.api.dinie.com.br/v3/auth/credentials
- curl
- Python
- Node.js
- Ruby
curl https://api.dinie.com.br/v3/auth/credentials \
-H "Authorization: Bearer $DINIE_API_TOKEN"{ "data": [ { "id": "dinie_ci_550e8400e29b41d4a716446655440000", "client_id": "dinie_ci_550e8400e29b41d4a716446655440000", "name": "Chave de Produção", "status": "active", "expires_at": "2027-03-04T00:00:00Z", "created_at": "2026-03-04T10:00:00Z", "updated_at": "2026-03-04T10:00:00Z", "last_used_at": "2026-03-05T14:30:00Z" } ], "has_more": false }
Request
Revokes an API key immediately and irreversibly. After revocation, no new tokens can be issued with this credential. Tokens already issued before revocation remain valid until they expire (maximum 1 hour). Use this endpoint when decommissioning an environment or in case of credential leakage.
- Mock serverhttps://dinie.nexaedge.dev/_mock/apis/openapi/auth/credentials/{client_id}
- Productionhttps://api.dinie.com.br/v3/auth/credentials/{client_id}
- Sandboxhttps://sandbox.api.dinie.com.br/v3/auth/credentials/{client_id}
- curl
- Python
- Node.js
- Ruby
curl -X DELETE https://api.dinie.com.br/v3/auth/credentials/dinie_ci_550e8400e29b41d4a716446655440000 \
-H "Authorization: Bearer $DINIE_API_TOKEN"The Customer resource (cust_) represents a credit borrower on the platform. The lifecycle follows: registration → KYC document submission → review → activation.
Two processes happen in parallel:
- Credit analysis — starts automatically upon registration
- KYC verification — the customer completes at their own pace
Manage the endpoints that receive event notifications (we_). Dinie follows the Standard Webhooks specification.
Events for each resource are documented in the Customers, Credit Offers, and Loans sections. This section covers only endpoint management.