List User Interests

Endpoint

GET /user/interests - List interests chosen by user

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/user/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
  • user_interest_id - id of link between user and interest; this id can be used to delete a user interest

Example response

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