Skip to main content

Overview

The Interests API allows you to manage interests that users can associate with their profiles. Interests help personalize travel recommendations and connect users with similar preferences.

Base URL

All API requests should be made to:
http://your-api-base-url.com/interests

Available Endpoints

Get All Interests

Retrieve all available interests

Create Interest

Add a new interest to the system

Update Interest

Update an existing interest

Delete Interest

Remove an interest from the system

Data Model

An interest object contains the following fields:
FieldTypeDescription
idintegerUnique identifier for the interest
namestringName of the interest

Response Format

All responses are returned in JSON format. Successful responses will contain the requested data, while error responses follow this structure:
{
  "error": "Error message describing what went wrong"
}

Status Codes

Status CodeDescription
200OK - Request successful
201Created - Resource created successfully
500Internal Server Error - An error occurred on the server

Build docs developers (and LLMs) love