v1
latestOpenAPI 3.1.02026-07-263644911022.4 KBCreate an Account
Use this endpoint to create an Account in Midaz. You can create as many accounts as necessary to structure your ledger, but each request creates only one account at a time.
Important: Before creating an Account, ensure the corresponding Asset already exists. Use the Create an Asset endpoint to register it if needed.
If you have previously defined Account Types, make sure they are properly configured before account creation. We recommend either recreating existing accounts or updating them to include the correct type before enabling the Account Type validation feature — this helps prevent validation errors and ensures compliance with your accounting structure.
Note: the type value external is reserved for system-managed external accounts and is rejected on input.
Path parameters
The unique identifier of the Organization associated with the Ledger.
The unique identifier of the associated Ledger.
Headers
The type of media of the resource. Recommended value is application/json.
A unique identifier used to trace and track each request.
Bearer JWT token for authentication. Required when PLUGIN_AUTH_ENABLED=true (enforced in multi-tenant deployments). Optional in default OSS single-tenant mode. Format: Bearer <token>
Request body
Response
Indicates that the request was successful and the response contains the expected data.