Den brainful API möjliggör sömlös integration mellan era applikationer och brainful's kraftfullt innehållshanteringssystem. Oavsett om ni bygger automationsverktyg eller integrerar med era favoritappar, vårt RESTFUL API tillhandahåller ett enkelt och säkert sätt att interagera med ert innehåll.
Tokenbaserad autentisering med HTTPS-kryptering
Standard HTTP-metoder med JSON-svar
Inbyggda geolokaliseringsmöjligheter
Optimerad för tillförlitlig prestanda
60 förfrågningar per minut per användare
Besök er brainful inställningssida för att generera er API-token.
Välj från vår exempelkod i cURL, JavaScript, eller Python för att komma igång snabbt.
Prova de interaktiva exemplen nedan för att testa er integration.
Alla API-förfrågningar kräver er API-token i Authorization-headern. Hämta er token från brainful inställningssida. API:et stöder både token- och bearer token-format.
Authorization: Token YOUR_API_TOKEN
Authorization: Bearer YOUR_API_TOKEN
Alla parametrar skickas i förfråganskroppen som JSON.
Parameter | Typ | Obligatorisk | Beskrivning |
---|---|---|---|
sträng | sträng | Ja | Innehåll att lägga till (1-5000 tecken) |
parent_luid | sträng | Nej | luid av föräldra-blocket (valfritt) |
latitude | flyttal | Nej | latitud (-90° till 90°) |
longitude | flyttal | Nej | longitud (-180° till 180°) |
agent | sträng | Nej | Agent identifier (max 50 chars) |
team_space | sträng | Nej | Team space slug to add the block to (only for organization members) |
{ "luid": "abc123", "slug": "My New Block", "type": "thought", "pinned": false, "entities": [], "created_timestamp": "2024-01-01T00:00:00Z", "last_edited": "2024-01-01T00:00:00Z", "experience": 5, "remaining_daily_quota": 97 }
luid
Typ: sträng
Unik identifierare för det skapade innehållet
slug
Typ: sträng
URL-friendly version of the content
words
Typ: heltal
Number of words in the content
remaining_daily_quota
Typ: heltal
Remaining content creation quota for today
Alla parametrar skickas i förfråganskroppen som JSON.
Parameter | Typ | Obligatorisk | Beskrivning |
---|---|---|---|
identifier | sträng | Ja | Identifierare för blocket att lägga till i (luid eller slug) |
sträng | sträng | Ja | Innehåll att läggas till (1-5000 tecken) |
{ "details": "Text appended to block successfully.", "luid": "abc123", "slug": "my-example-block" }
luid
Typ: sträng
Unik identifierare för det skapade innehållet
slug
Typ: sträng
URL-friendly version of the content
words
Typ: heltal
Number of words in the content
remaining_daily_quota
Typ: heltal
Remaining content creation quota for today
Parameter | Typ | Obligatorisk | Beskrivning |
---|---|---|---|
luid | sträng | Ja | Unik identifierare för blocket som ska hämtas |
Parameter | Typ | Obligatorisk | Beskrivning |
---|---|---|---|
latitude | flyttal | Nej | latitud (-90° till 90°) |
longitude | flyttal | Nej | longitud (-180° till 180°) |
agent | sträng | Nej | Agentidentifierare (max 50 tecken) |
{ "creator": "johnnyappleseed", "luid": "abc123", "slug": "My New Block", "type": "thought", "html": "", "blocks": [], "entities": [], "flagged": false, "pinned": false, "archived": false, "trashed": false, "public": false, "created_timestamp": "2025-01-28 18:01", "last_edited": "2025-01-28 18:01", "words": 3, "bytes": 45, "hits": 0 } My New Block
creator
Typ: sträng
Username of the content creator
luid
Typ: sträng
Unik identifierare för blocket
type
Typ: sträng
Innehållstyp (t.ex., "thought")
html
Typ: sträng
HTML innehållet i blocket
created_timestamp
Typ: sträng
Creation date and time
hits
Typ: heltal
Number of views