๐Ÿ”Œ Reachy Mini API Reference

โš ๏ธ Backend Activation Required

Movement APIs will return {"detail":"Backend not running"} until you activate the backend via the red switch in the dashboard at http://reachy-mini.local:8000/

POST/health-check

Check if Reachy dashboard is responding

Example Request:

curl -X POST http://reachy-mini.local:8000/health-check

Example Response:

{"status":"ok"}

๐Ÿ“Š Common Response Codes

CodeMeaningCommon Cause
200SuccessMovement started successfully
404Not FoundInvalid endpoint or movement name
422Backend not runningRed switch not activated in dashboard
500Server ErrorBackend crashed or hardware issue

๐Ÿ Python Examples

import requests
import time

REACHY_URL = "http://reachy-mini.local:8000"

# Check health
def check_health():
    response = requests.post(f"{REACHY_URL}/health-check")
    return response.json()

# Play emotion
def play_emotion(emotion_name):
    url = f"{REACHY_URL}/api/move/play/recorded-move-dataset/"
    url += f"pollen-robotics/reachy-mini-emotions-library/{emotion_name}"
    response = requests.post(url)
    return response.json()

# Play sequence
def greeting_sequence():
    play_emotion("curious1")
    time.sleep(4)
    play_emotion("amazed1")
    time.sleep(4)
    play_emotion("welcoming1")

# List all emotions
def list_emotions():
    url = f"{REACHY_URL}/api/move/recorded-move-datasets/list/"
    url += "pollen-robotics/reachy-mini-emotions-library"
    response = requests.get(url)
    return response.json()

if __name__ == "__main__":
    print("Health:", check_health())
    print("Emotions:", list_emotions()[:5], "...")
    print("Playing curious...")
    play_emotion("curious1")