Table of Contents

Making Requests

Once you have an Access Token, include it as a Bearer token to call the RedBook Direct API.

Swagger

  1. Navigate to https://api.redbookdirect.com. This opens a Swagger page that lists all the RedBook Direct API endpoints.
  2. Use the Authorize button in the top-right corner of the Swagger page to open a pop-up that lets you set the Bearer token.
  3. Type Bearer [Your Access Token] in the text box provided and click Authorize.

Once the Bearer token is set, all API calls show a solid-colour lock icon next to them. From then on, when you execute any API call, the Bearer token is included in the call automatically.

CURL

  1. Ensure the Access Token (Bearer token) is included in the call to the API:

    curl -H "Authorization: Bearer {access-token}" \
      https://api.redbookdirect.com/v1/au/car/makes
    
  2. The response looks like the output below:

    [
      {
        "id": 1341,
        "name": "Abarth",
        "startyear": 2011,
        "latestyear": 2020,
        "vehiclecount": 102,
        "_links": {
          "self": "/v1/au/car/Makes/1341",
          "families": "/v1/au/car/Families?makeid=1341"
        }
      },
      {
        "id": 1342,
        "name": "AC",
        "startyear": 1936,
        "latestyear": 2019,
        "vehiclecount": 49,
        "_links": {
          "self": "/v1/au/car/Makes/1342",
          "families": "/v1/au/car/Families?makeid=1342"
        }
      }
    ]
    

See Querying Options for how to page, project and filter the data returned, and the Endpoints reference for each available resource.