ressource.socialbetadocumentation
API referenceSources

Save a source

POST
/api/v1/sources

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

Authorization

headerAuthorizationBearer <token>

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

Request Body

application/json
  1. body
name*string
Length1 <= length <= 2000
description?|null
url*string
category?|null
folder_id?|null
visibility*string
Value in"private""public"
thumbnail_media_id?|null
has_oembed?boolean
oembed_provider?|null
oembed_author?|null
oembed_html?|null
oembed_data?unknown|null
in_library?boolean
tags?array<>
Itemsitems <= 50
organization_ids?array<>
Itemsitems <= 50
enable_warc?boolean|null
original_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

Response Body

The created source

application/json
  1. response
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
short_id*string
name*string
url*string
warc_status*string
curl -X POST 'https://www.ressource.social/api/v1/sources' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "url": "string",  "visibility": "private"}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "short_id": "string",  "name": "string",  "url": "string",  "warc_status": "string"}