Feelings API Reference
The Feelings endpoint provides access to user-reported daily "How was your day?" and "How was your sleep?" responses.
GET /v1/feelings/{user_id}/{ftype}
Parameters
| Name | Type | In | Description |
|---|---|---|---|
user_id |
UUID | Path | The ID of the user. |
ftype |
Enum | Path | The type of feelings to retrieve. Allowed values: DAY, NIGHT. |
start_date |
Date | Query | Start date for the data retrieval (format: YYYY-MM-DD). |
end_date |
Date | Query | End date for the data retrieval (format: YYYY-MM-DD). |
days |
Integer | Query | Days per page (default 1, max 7). Only applies to application/json cursor-based pagination. |
cursor |
String | Query | Pagination cursor from the previous response. Only supported on application/json; returns 400 for CSV. |
Response Formats
| Header Value | Format |
|---|---|
application/json |
JSON (default) |
text/csv |
CSV |
Example Request (JSON)
curl -X GET "https://research-api.nowatch.com/v1/feelings/YOUR_USER_ID/DAY?start_date=2023-01-01&end_date=2023-01-31" \
-H "accept: application/json" \
-H "X-API-KEY: YOUR_API_KEY"
Example Request (CSV)
curl -X GET "https://research-api.nowatch.com/v1/feelings/YOUR_USER_ID/NIGHT?start_date=2023-01-01&end_date=2023-01-31" \
-H "accept: text/csv" \
-H "X-API-KEY: YOUR_API_KEY"
Example JSON Response