Den brainful API muliggjør sømløs integrasjon mellom applikasjonene dine og brainful's kraftig innholdshåndteringssystem. Enten du bygger automatiseringsverktøy eller integrerer med favorittappene dine, vår RESTFUL API gir en enkel og sikker måte å samhandle med innholdet ditt på.
Token-basert autentisering med https-kryptering
Standard HTTP-metoder med JSON-respons
Innebygde geolokaliseringsevner
Optimalisert for pålitelig ytelse
60 forespørsler per minutt per bruker
Besøk din brainful innstillinger for å generere ditt API-token.
Velg fra vår eksempelkode i cURL, JavaScript, eller Python for å komme raskt i gang.
Prøv de interaktive eksemplene nedenfor for å teste integreringen din.
Alle API-forespørsler krever ditt API-token i Authorization-hodet. Hent tokenet ditt fra brainful innstillinger. API-en støtter både token- og bearer token-formater.
Authorization: Token YOUR_API_TOKEN
Authorization: Bearer YOUR_API_TOKEN
Alle parametre sendes i forespørselskroppen som JSON.
Parameter | Type | Påkrevd | Beskrivelse |
---|---|---|---|
streng | streng | Ja | Innhold som skal legges til (1-5000 tegn) |
parent_luid | streng | Nei | luid av foreldreblokken (valgfritt) |
latitude | desimaltall | Nei | breddegrad (-90° til 90°) |
longitude | desimaltall | Nei | lengdegrad (-180° til 180°) |
agent | streng | Nei | Agent identifier (max 50 chars) |
team_space | streng | Nei | 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
Type: streng
Unik identifikator for det opprettede innholdet
slug
Type: streng
URL-friendly version of the content
words
Type: heltall
Number of words in the content
remaining_daily_quota
Type: heltall
Remaining content creation quota for today
Alle parametre sendes i forespørselskroppen som JSON.
Parameter | Type | Påkrevd | Beskrivelse |
---|---|---|---|
identifier | streng | Ja | Identifikator for blokken det skal legges til i (luid eller slug) |
streng | streng | Ja | Innhold som skal legges til (1-5000 tegn) |
{ "details": "Text appended to block successfully.", "luid": "abc123", "slug": "my-example-block" }
luid
Type: streng
Unik identifikator for det opprettede innholdet
slug
Type: streng
URL-friendly version of the content
words
Type: heltall
Number of words in the content
remaining_daily_quota
Type: heltall
Remaining content creation quota for today
Parameter | Type | Påkrevd | Beskrivelse |
---|---|---|---|
luid | streng | Ja | Unik identifikator for blokken som skal hentes |
Parameter | Type | Påkrevd | Beskrivelse |
---|---|---|---|
latitude | desimaltall | Nei | breddegrad (-90° til 90°) |
longitude | desimaltall | Nei | lengdegrad (-180° til 180°) |
agent | streng | Nei | Agent-identifikator (maks 50 tegn) |
{ "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
Type: streng
Username of the content creator
luid
Type: streng
Unik identifikator for blokken
type
Type: streng
Innholdstype (f.eks., "thought")
html
Type: streng
HTML innhold i blokken
created_timestamp
Type: streng
Creation date and time
hits
Type: heltall
Number of views