ressource.socialbetadocumentation
API referenceReactions

Set the caller's reaction on a source

One reaction per person per source: this replaces any other type. Idempotent. Notifies the owner, as reacting in the app does. A source the caller cannot open is 404; past the hourly reaction limit, 429.

PUT
/api/v1/sources/{id}/reaction

Sends a real request with your token. Prefer a read-only token; it is kept in this browser's storage.

One reaction per person per source: this replaces any other type. Idempotent. Notifies the owner, as reacting in the app does. A source the caller cannot open is 404; past the hourly reaction limit, 429.

Authorization

headerAuthorizationBearer <token>

A personal access token (rsk_…) or a Supabase access token.

Path Parameters

id*string
Length1 <= length

Request Body

application/json
  1. body
reaction_type*string
Value in"like""love""laugh""wow""sad""angry""eyes"

Response Body

The reaction

application/json
  1. response
bookmark_id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
reaction_type*string
Value in"like""love""laugh""wow""sad""angry""eyes"
curl -X PUT 'https://www.ressource.social/api/v1/sources/string/reaction' \  -H 'Content-Type: application/json' \  -d '{  "reaction_type": "like"}'
{  "bookmark_id": "49a78d35-bc45-4a39-a336-d00349864577",  "reaction_type": "like"}