API reference

Favorites

5 endpoints. Every call is POST https://api.useburj.com/v1/<path> with a JSON body.

Favorites list

POST
/favorites

A short, ordered list of countries and packages (your own, or Burj's suggested list). source: PARTNER, DEFAULT or NONE. Packages have the same shape as /{countryId}/packages.

Body

Send an empty JSON object: {}

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Add to favorites

POST
/favorites/add

Add a whole country (no packageId) or one package. Returns the updated list and alreadyIncluded.

Body

  • countryIdstring
    required

    Country / region id

  • packageIdstring
    optional

    Package id; omit to add the whole country

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Remove from favorites

POST
/favorites/remove

Remove a country, or one package of it.

Body

  • countryIdstring
    required

    Country / region id

  • packageIdstring
    optional

    Package id; omit to remove the country

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Save the whole list

POST
/favorites/set

Replace the list (use it to reorder). packageIds: [] = the whole country. Nothing is saved if one item is wrong.

Body

  • itemsany[]
    required

    [{countryId, packageIds}] in display order

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Back to Burj's list

POST
/favorites/reset

Deletes your own list.

Body

Send an empty JSON object: {}

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.