Logo

Client ID & secret key

Facing issues accessing your Client ID for API use? Refer to this doc

A Client ID and Secret Key are unique identifiers that authenticate and authorize API requests to JDoodle’s API services. The Client ID identifies your account, while the Secret Key verifies your identity and secures your API interactions. To use JDoodle’s APIs, include your Client ID and Secret Key in the request payload. These credentials ensure that your API calls are authenticated and authorized.

curl -X POST "https://api.jdoodle.com/v1/execute" \
    -H "Content-Type: application/json" \
    -d '{
          "clientId": "your_client_id_here",
          "clientSecret": "your_client_secret_here",
          "script": "print(\"Hello, World!\")",
          "language": "python3",
          "versionIndex": "0"
        }'

How to obtain a client ID and secret key?

You can get your client ID and secret key from your API dashboard once you subscribe to an API plan.

If you don’t have a JDoodle account or you’ve not subscribed to an API plan, here are the steps to get your client ID and secret key:

  1. Create a JDoodle account if you do not have one already.
  2. Log in to your JDoodle account using your credentials.
  3. Go to the API dashboard from the main menu.
  4. Choose the API plan that best suits your needs and subscribe. If you are unsure about our API plans, you can subscribe to a free one.
  5. Your Client ID and Secret Key are under the API credentials section in the API dashboard.

Refreshing your secret key

If you need to refresh your Secret Key, you can do so from the API dashboard. Log in to your JDoodle account, navigate to the API Credentials section, and click the refresh icon beside the Secret Key to generate a new one.

Few things to keep in mind

  • Your client ID and secret key are unique. Your client ID is fixed, while your secret key changes whenever you refresh it.
  • Never share your secret key with anyone; do not publicly share your client ID and secret key.
  • If you encounter errors while using APIs, refer to this document to learn how to fix common mistakes and retry by refreshing your secret key.
  • For any issues, contact JDoodle support.