Make Your First API Call (Hello-michelin API)

Learn how to interact with the API using Keyless access, API Key, and OAuth2 authentication methods.

 

 

This article helps beginners make their first successful API call to the Hello-michelin API. You will learn how to subscribe to the API Product and how to interact with the API using Keyless access, API Key, and OAuth2 authentication methods.

 


 

What you will call

You will learn how to make three different API calls to the Hello Michelin API, demonstrating various authentication methods:

  1. Keyless Access: A simple call without any authorization requirements.
  2. API Key Access: A call that requires an API Key for authentication.
  3. OAuth2 Access: A call that utilizes the OAuth2 Client Credentials flow for secure access.

     

You will be using the 3 differents endpoints with different authentication methods:

  • API name: Hello-michelin API
  • Base URL (DEV): https://dev.api.michelin.com/p0r/v1
  • Endpoint:
    • GET /hello-michelin/keyless
    • GET /hello-michelin/apikey
    • GET /hello-michelin/oauth
  • Security:
    • Keyless (no authorization)
    • API Key
    • OAuth 2.0 (Client Credentials)
  • Successful response (200):
    • Body: { "message": "Hello Michelin" }

       


 

Prerequisites checklist

Before calling the endpoint, ensure:

  • You require an api client application like Bruno.
  • You need an active subscription to the Hello-michelin API product. Get your trial access from the plan of usage page.

When handling credentials or any sensitive data, follow Michelin standards for secure processing and storage.

 


 

Download API Clients collections

Bruno

Bruno

Collection : Bruno

Open Collection

Open Collection

 


 

 

Making API Calls Without Authentication (Keyless)

Keyless Endpoint

  • Endpoint: GET /hello-michelin/keyless
  • Description: Generates a Hello Michelin response without any authentication.

 

Making API Calls Using API Key

API Key Endpoint

  • Endpoint: GET /hello-michelin/apikey
  • Description: Generates a Hello Michelin response using an API Key.
  • Parameter: Add the API Key as a header parameter (name: apikey)

Your API Key will be issued by Michelin as part of the subscription process within the API product's usage plan tab.

 

 

Making API Calls Using OAuth2

 

OAuth2 Endpoint

  • Endpoint: GET /hello-michelin/oauth
  • Description: Generates a Hello Michelin response using OAuth2 authentication. This can be achieved in two ways:

You can obtain an access token either by sending a dedicated OAuth request (see below) or directly from your API client’s Authorization tab. For a Bruno example, see the section "Option 2: Retrieve your Access Token simultaneously with your GET request".

Your OAuth credentials (client_id & client_secret) will be provided by Michelin during the subscription process within the API product's usage plan tab.

 

 

Common Errors and How to Fix Them

400 URL not found

  • Symptoms

    {"message":"URL not found","http_status_code":404}

  • Fix: Validate the query url and ensure using correct method/path.

401 Unauthorized

  • Symptoms

    {"message":"Unauthorized request","http_status_code":401}

  • Fix: Ensure the Authorization header includes a valid token and includes the correct scope.

429 Rate Limit Exceeded

  • Symptoms

    {"message":"Spike limit exceeded! You reached the limit of requests allowed in a specific time frame.","http_status_code":429}

  • Fix: Respect plan limits and consider a higher plan if hitting limits frequently.

500 Internal Server Error

  • Symptoms

    {"message":"Server unavailable","http_status_code":500}

  • Fix: Retry after a short delay and check the service status.

 

 


 

Production readiness checklist

Ensure to:

  • Use correct environment URLs.
  • Securely store client secrets and manage token lifecycle.
  • Implement error handling strategies for 401, 429, and 5xx responses.
  • Monitor usage against your subscription limits.
  • Track release notes for this product to anticipate changes.

     


 

Need help ?

Teams channel

Teams channel

For Michelin users only : Tag @ApiPortal in the “Your Questions” channel in our OneSystem - Integration Experience Teams channel