API

Build native clients, bots and integrations for the Militant social network.

Quick Start
curl -H "Authorization: Bearer VOTRE_TOKEN" \
https://api.militant.revlibertaire.com/v1/posts.php

Documentation

Acces rapide a la documentation principale, au wiki technique et a la creation de tokens.

Documented

Complete documentation, code examples, JavaScript and Python SDKs available.

Documentation

Secure

Token authentication, rate limiting, protection against SQL injection, XSS and DoS attacks.

FAQ

api_create_token

Le panneau admin reste le chemin le plus direct pour generer un token et lancer les premiers tests.

Admin

Quick Start

Trois etapes simples pour passer d'une instance active a un premier appel authentifie.

1. Create a token
api_create_token

Log in with your Militant account to generate an API token.

Create my token
2. Make your first request
Endpoints

Teste immediatement un endpoint avec le token que tu viens de creer.

curl -H "Authorization: Bearer VOTRE_TOKEN" \
https://api.militant.revlibertaire.com/v1/posts.php
3. Explore the documentation
Wiki

Check out the wiki for detailed guides and examples.

View Wiki

Available Endpoints

Vue d'ensemble des familles d'endpoints les plus utiles, dans une presentation plus compacte.

View all endpoints
Users

Profiles, followers, friends, search

Posts

Posts, comments, reactions, shares

Messages

Private messages, discussion groups

Groups & Pages

Militant groups, organization pages

Events

Demonstrations, actions, mobilizations

Stories

Ephemeral stories, temporary content

Lives
In Development

Live broadcasts, video streaming

39+
Endpoints
REST
REST Architecture
JSON
JSON Format
OAuth2
OAuth2 Authentication