API Key Required

Check Authentication for more details

/favourites

Checkout the /favourites API Reference in the left panel

Example
  1. A 3 Random Images are loaded via https://api.thecatapi.com/v1/images/search
  2. The User can press “Favourite” to add that to their personal favourites, with the sub_id of User-123
  3. This sends a POST request to https://api.thecatapi.com/v1/favourites with a JSON object in the body
  4. This body contains the “image_id”,
  5. The body can contains a “sub_id” of “User-123” - which marks the Favourite as theirs

Bonus The Favourite history for the account is then loaded via GET https://api.thecatapi.com/v1/favourites.