List Interests

Endpoint

GET /interests - List currently available interests for user choice

Parameters

Parameter Parameter Type Data Type
api-key header string Required
Authorization header string Required

Error messages

  • invalid HTTP_API_KEY
  • Not authenticated

HTTP response codes:

  • 200 - Success
  • 401 - Unauthorized action

Example request

curl --request GET \
  --url https://api-dev.radiozu.ro/v1/interests \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer AUTH_TOKEN' \
  --header 'api-key: API_KEY'

Response fields

An array containing multiple interest objects. One interest object is described by:

  • id - interest id
  • name - interest name

Example response

{
    "data": [
        {
            "id": 1,
            "name": "Vedete"
        },
        {
            "id": 2,
            "name": "Muzica"
        }
    ]
}