Create an Application
Registers an application and issues its credentials.
⚠️ The response carries the clientSecret IN FULL, and no other Identity API response returns it. Store it when you receive it; a later read of the same application does not show it again. Losing it means deleting the application and creating another.
Send partnerId to bind the credential to one of your customers: the application is then confined to that partner’s permissions and scope, and reaches only the intersection of the two.
Failures:
400— a required member is missing or malformed.404 IDE-1046—partnerIdnames a partner that does not exist in your organization.400 IDE-0007—natureholds any value other thanbancarizador, or is sent withpartnerId;fields.naturenames it. Nothing was created.400 IDE-1063— multi-tenant only: the request sendssource. Service credentials are issued by Lerian, never through this route; nothing was created. Removesourceand retry.400 IDE-1064— single-tenant only: the request sendssource. Service credentials are issued throughPOST /v1/applications/service-credentials; nothing was created. Removesourceand retry.503 IDE-0064— another application for the same product is being created in your organization at the same moment. Creates for one product are applied one at a time, so this request waits up to about 10 seconds for its turn and answers this only if the other create is still running. Nothing about the request was wrong and nothing was created; retry it.503 IDE-0065— the service that coordinates concurrent creates did not answer within that wait. Nothing was created; retry it.503 IDE-0066— the identity provider is unavailable (unreachable, too slow to answer, or failing). Nothing about the request was wrong; retry it later.
Autorizações
JWT bearer token issued by the identity provider.
Corpo
The application to create.
"Identity Used By BR Sisbajud"
"midaz"
Optional. bancarizador, the only accepted value, puts the top-level claim nature=bancarizador, which the consignado gateway requires, on every token this credential issues; it cannot be combined with partnerId, an empty string is treated as absent, and any other value is refused with 400.
""
"00000000-0000-0000-0000-000000000000"
Refused in both modes: multi-tenant answers 400 IDE-1063, single-tenant answers 400 IDE-1064 (service credentials are issued through POST /v1/applications/service-credentials).
"plugin-identity"
Resposta
Created
Returned only by the create call. Absent from every Identity API read.
"2021-09-01T00:00:00Z"
"Midaz Used By Application X"
"00000000-0000-0000-0000-000000000000"
"Midaz"
"00000000-0000-0000-0000-000000000000"

