Business OS
Selldone ยฎ

API Access

Create API applications in Settings โ€บ API to connect your own apps. Choose a public or confidential client, add callback URLs and keep the client secret safe.

API applications let your own apps, sites and integrations work with your shop through the Selldone API. Each application is an OAuth client: people sign in and approve it, and your app receives access tokens for API calls. Open Settings โ€บ API in your shop dashboard.

Choose the application type

  • Public client โ€” has no secret. Use it for mobile apps, single-page apps and other code that runs on the user's device, with the PKCE sign-in flow.
  • Confidential client โ€” keeps a secret on your secure server. Use it for server-side apps.

Choose an API client type

Both types use OAuth 2.0 authorization code sign-in to get access tokens for your shop.

Choose an API client typeYou are building an app1You are building an appCan it keep a secret on a server? Only code that runs on your own server can protect a secret.2Can it keep a secret on a server?Confidential client Store the client secret on your server. It is shown only once.3Confidential clientPublic client Mobile apps and single-page apps. Use PKCE instead of a secret.4Public clientGet access tokens with OAuth Users sign in and approve; your app receives tokens.5Get access tokens with OAuthCall the Selldone API Send the access token with each request.6Call the Selldone APIConnectedYesNoChoose an API client typeYou are building an app1You are building an appCan it keep a secret on a server? Only code that runs on your own server can protect a secret.2Can it keep a secret on aserver?Confidential client Store the client secret on your server. It is shown only once.3Confidential clientPublic client Mobile apps and single-page apps. Use PKCE instead of a secret.4Public clientGet access tokens with OAuth Users sign in and approve; your app receives tokens.5Get access tokens with OAuthCall the Selldone API Send the access token with each request.6Call the Selldone APIConnectedYesNo
Text version
  1. You are building an app
  2. Can it keep a secret on a server?

    Only code that runs on your own server can protect a secret.

  3. Confidential client

    Store the client secret on your server. It is shown only once.

  4. Public client

    Mobile apps and single-page apps. Use PKCE instead of a secret.

  5. Get access tokens with OAuth

    Users sign in and approve; your app receives tokens.

  6. Call the Selldone API

    Send the access token with each request.

    Connected
  • You are building an app Can it keep a secret on a server?
  • Can it keep a secret on a server? Confidential client: Yes
  • Can it keep a secret on a server? Public client: No
  • Confidential client Get access tokens with OAuth
  • Public client Get access tokens with OAuth
  • Get access tokens with OAuth Call the Selldone API

Create an application

  1. In API applications, select Add application.
  2. Enter an Application name your users will recognize.
  3. Choose the Application type: Public client or Confidential client.
  4. Under Callback URLs, type each address that may receive the sign-in result and press Enter or Tab to add it.
  5. Select Create client.
Add API client dialog with name, public or confidential type and callback URLs.
Choose the client type and the callback URLs your app uses.

For a confidential client, Save your client secret now appears with the Client secret. This is the only time it is shown. Store it in your server's secure settings, then select Done โ€” secret saved. Never put the secret in a website, mobile app or public repository.

Manage your applications

  • The list shows each application with its Client ID (with a copy button), owner and type.
  • Select Edit to change the name, type or callback URLs, then Save changes. Select Delete to remove an application; apps that use it stop working.
  • To replace a lost or leaked secret, switch the application to Public client and save, then switch it back to Confidential client and save. A new secret is shown once, and the previous one stops working.
API applications list with client IDs, owners, types and actions.
Copy a client ID or edit and delete applications here.

Use the API

Use the OAuth 2.0 authorization code flow: with PKCE for public clients, or with the client secret on your server for confidential clients. Then send the access token with each API request. The Selldone API documentation lists the endpoints, and Rate limits explains request limits.

To connect an AI assistant, use Selldone MCP instead. See MCP with Claude and MCP with ChatGPT.

FAQ

I lost my client secret. Can I see it again?

No. It is shown only once. Switch the application to Public client and save, then back to Confidential client and save to get a new secret. The old one stops working.

Which type should a mobile app or single-page app use?

Public client with PKCE. Code that runs on a user's device can't keep a secret.

Who can create API applications?

The shop owner and staff who can change the Settings section, which by default is the Super Admin level.