Done
Done ID

Request a client

The Done team creates each client. You send a request with the information below, and we send you the client ID. If your client type uses a secret, we send the secret through a secure channel.

Information to send

Send one request for each app and each environment:

FieldExampleNotes
App nameAcme SpendThe name that users see.
Company and contactAcme AB, dev@acme.exampleThe person who receives the credentials.
EnvironmentSandboxSandbox or production.
Integration typeBrowser or mobile loginSee Integration types.
Redirect URIshttps://spend.acme.example/callbackLogin types only. Done ID sends the user back only to these addresses.
Post-logout redirect URIshttps://spend.acme.example/Login types only. Done ID sends the user here after logout.
Web originshttps://spend.acme.exampleBrowser login only. The origins that call the token endpoint from the browser (CORS).
Done OS APIsPartner APIThe APIs that your app calls with the token.
Registration redirect URLshttps://spend.acme.example/onboarding/*Optional. Only if you create registration sessions. The URLs where Done OS may send a user after the email verification. See Redirect URLs.

Give the exact redirect URIs. Done ID compares them with the URI in each login request. A wildcard at the end of the path (https://spend.acme.example/*) is possible, but an exact URI is safer.

For a mobile app, give the redirect URI that the app registers with the operating system. Use a claimed HTTPS link (Universal Link on iOS, App Link on Android) or a custom scheme that you own, for example com.acme.spend:/callback.

What you receive

Integration typeYou receive
Machine to machineClient ID and client secret
Server-side loginClient ID and client secret
Browser or mobile loginClient ID

Keep the secret safe

If you receive a client secret, keep it on your server only:

  1. Store the secret in a secret store or in an environment variable on the server.
  2. Do not put the secret in a browser app, a mobile app, or a source repository.
  3. If the secret leaks, contact the Done team. We issue a new secret and stop the old one.

When you contact the Done team about a client, give the client ID. Never send the client secret.

See also