{"components":{"securitySchemes":{"bearer":{"scheme":"bearer","type":"http"}}},"info":{"description":"Drive your own Nabaztag rabbits. Every call needs `Authorization: Bearer <token>`; create the token on /integration. A token only sees its account's rabbits. Callable from a web page's script on any site (CORS `Access-Control-Allow-Origin: *`, no cookies): keep the token out of public pages.","title":"Le Terrier API","version":"1"},"openapi":"3.1.0","paths":{"/api/books":{"get":{"operationId":"api_books_get","parameters":[],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The talking books this warren holds: slug and title."}},"/api/jingles":{"get":{"operationId":"api_jingles_get","parameters":[],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The jingles a rabbit can play."}},"/api/rabbits":{"get":{"operationId":"api_rabbits_get","parameters":[],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Your rabbits."}},"/api/rabbits/{mac}":{"get":{"operationId":"api_rabbit_one_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"One rabbit: name, firmware, online, its settings (voice included); keys, passwords and calendar addresses show as \"(set)\"."}},"/api/rabbits/{mac}/air":{"get":{"operationId":"api_air_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Air quality where the rabbit lives."},"post":{"operationId":"api_air_show_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"speak":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Show the air quality on the belly (and say it with speak=true).","x-not-on":["v1"]}},"/api/rabbits/{mac}/alarm":{"post":{"operationId":"api_alarm_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"jingle":{},"weather":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Set the wake-up alarm (jingle, weather).","x-not-on":["v1"]}},"/api/rabbits/{mac}/ambient":{"post":{"operationId":"api_ambient_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"clear":{},"clear_all":{},"value":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Set or clear one raw ambient service on the belly.","x-not-on":["v1"]}},"/api/rabbits/{mac}/ask":{"post":{"operationId":"api_ask_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"q":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Ask the owner's model a question; the rabbit says the answer.","x-not-on":["v1"]}},"/api/rabbits/{mac}/belly/clear":{"post":{"operationId":"api_belly_clear_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Switch the belly lights off.","x-not-on":["v1"]}},"/api/rabbits/{mac}/birthdays":{"get":{"operationId":"api_birthdays_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The birthdays the rabbit wishes."},"post":{"operationId":"api_birthday_add_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"day":{},"name":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"{\"name\": \"L\u00e9a\", \"day\": \"MM-DD\" or \"YYYY-MM-DD\"}."}},"/api/rabbits/{mac}/birthdays/{bid}":{"delete":{"operationId":"api_birthday_delete_delete","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}},{"in":"path","name":"bid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Forget a birthday."}},"/api/rabbits/{mac}/book":{"post":{"operationId":"api_book_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"book":{},"stop":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Read one of the talking books of 2006 ({\"book\": slug}), or stop ({\"stop\": true}); GET /api/books lists them.","x-not-on":["v1"]}},"/api/rabbits/{mac}/breath":{"post":{"operationId":"api_breath_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"colour":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The colour it breathes in at rest ({\"colour\": ...}): a tag's or a v1's."}},"/api/rabbits/{mac}/button":{"get":{"operationId":"api_buttons_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"What each head-button gesture does."},"post":{"operationId":"api_button_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"gesture":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"{\"gesture\": \"click\" | \"double_click\" | \"long_click\" | \"double_long_click\", \"type\": \u2026} -- the same actions a tag takes."}},"/api/rabbits/{mac}/button/{gesture}":{"delete":{"operationId":"api_button_delete_delete","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}},{"in":"path","name":"gesture","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Clear a gesture."}},"/api/rabbits/{mac}/camera":{"post":{"operationId":"api_camera_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"enabled":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag:tag, a Nabaztag v1, a TagTagTag"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Karotz only: allow or forbid its camera (enabled: true/false; off by default).","tags":["Karotz"],"x-not-on":["tag","v1","tagtagtag"]}},"/api/rabbits/{mac}/choreographies":{"get":{"operationId":"api_choreographies_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The choreographies saved on this rabbit's page: POST .../choreography {\"name\": ...} plays one."}},"/api/rabbits/{mac}/choreography":{"post":{"operationId":"api_choreography_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{},"steps":{},"tempo_ms":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Play a choreography of your own: LEDs in RGB and ears, step by step in time.","x-not-on":["v1"]}},"/api/rabbits/{mac}/compliment":{"post":{"operationId":"api_compliment_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Say a compliment.","x-not-on":["v1"]}},"/api/rabbits/{mac}/config":{"post":{"operationId":"api_config_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Write settings."}},"/api/rabbits/{mac}/counter":{"post":{"operationId":"api_counter_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"value":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1, a Karotz, a TagTagTag"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Show a number on the belly.","x-not-on":["v1","karotz","tagtagtag"]}},"/api/rabbits/{mac}/ears":{"post":{"operationId":"api_ears_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"left":{},"right":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Move the ears (left, right): 0 upright, 10 lying flat; up to 16 is taken, but past 10 the ear goes on round and forward."}},"/api/rabbits/{mac}/jingle":{"post":{"operationId":"api_jingle_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Play one of the jingles.","x-not-on":["v1"]}},"/api/rabbits/{mac}/journal":{"get":{"operationId":"api_journal_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Today's home notes."},"post":{"operationId":"api_journal_add_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"text":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"{\"text\": \"le colis est arriv\u00e9\"}: a note for the day's home summary."}},"/api/rabbits/{mac}/leds":{"post":{"operationId":"api_leds_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"leds":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Light the LEDs one by one in RGB (bottom, left, middle, right, top); the others stay.","x-not-on":["v1"]}},"/api/rabbits/{mac}/listen":{"post":{"operationId":"api_listen_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"seconds":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1, a Karotz, a TagTagTag"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Push-to-talk: one utterance, transcribed, answered out loud.","x-not-on":["v1","karotz","tagtagtag"]}},"/api/rabbits/{mac}/mail":{"get":{"operationId":"api_mail_waiting_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The waiting mail, without its sound."},"post":{"operationId":"api_mail_send_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"jingle":{},"text":{},"to":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Send a message to a friend's rabbit (text, jingle, to = handle)."}},"/api/rabbits/{mac}/mail/block":{"post":{"operationId":"api_mail_block_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"handle":{},"unblock":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Block or unblock a sender."}},"/api/rabbits/{mac}/mail/read":{"post":{"operationId":"api_mail_read_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Say the waiting mail now."}},"/api/rabbits/{mac}/mail/{mail_id}/audio":{"get":{"operationId":"api_mail_audio_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}},{"in":"path","name":"mail_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"One waiting voice message, as the MP3 it is."}},"/api/rabbits/{mac}/minuteur":{"post":{"operationId":"api_minuteur_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"cancel":{},"minutes":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The kitchen timer: {\"minutes\": n} starts it, {\"cancel\": true} stops it.","x-not-on":["v1"]}},"/api/rabbits/{mac}/mood":{"get":{"operationId":"api_mood_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The rabbit's mood."},"post":{"operationId":"api_mood_nudge_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"kind":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Tell the rabbit somebody interacted with it."}},"/api/rabbits/{mac}/name":{"post":{"operationId":"api_rename_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Rename the rabbit; its handle follows, friends included (as the page)."}},"/api/rabbits/{mac}/nightlight":{"post":{"operationId":"api_nightlight_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"colour":{},"level":{},"on":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Night light on the belly (on, colour, level).","x-not-on":["v1"]}},"/api/rabbits/{mac}/nose":{"post":{"operationId":"api_nose_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"mode":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1, a Karotz, a TagTagTag"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Blink the nose.","x-not-on":["v1","karotz","tagtagtag"]}},"/api/rabbits/{mac}/notify":{"post":{"operationId":"api_notify_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"colour":{},"jingle":{},"level":{},"nose":{},"text":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"One call for \"something happened\": a colour on the belly, a jingle, a sentence, a nose blink, a count.","x-not-on":["v1"]}},"/api/rabbits/{mac}/now":{"post":{"operationId":"api_now_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"what":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Do a \"now\" action (what: taichi, story, joke, horoscope, nameday, briefing, agenda, news, transport, weather, time, compliment, fierte, advent).","x-not-on":["v1"]}},"/api/rabbits/{mac}/os-update":{"post":{"operationId":"api_os_update_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag:tag, a Nabaztag v1, a TagTagTag"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Terrier OS's update for a Karotz on it, as its page's button: the version on offer, sent inside its session.","x-not-on":["tag","v1","tagtagtag"]}},"/api/rabbits/{mac}/palette":{"get":{"operationId":"api_palette_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"What its lights take: the belly's colour names, its breathing colours, its LEDs, the nose's modes, the ears' range (0 upright, 10 flat)."}},"/api/rabbits/{mac}/photo":{"post":{"operationId":"api_photo_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"image/jpeg":{"schema":{"format":"binary","type":"string"}}},"description":"the picture"},"400":{"description":"not on a Nabaztag:tag, a Nabaztag v1, a TagTagTag"},"401":{"description":"no or bad token"},"403":{"description":"the camera is off"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"429":{"description":"too many pictures"},"503":{"description":"the rabbit is offline"},"504":{"description":"no picture came"}},"summary":"Karotz only: take one picture and get it as JPEG, inside the rabbit's encrypted session.","tags":["Karotz"],"x-not-on":["tag","v1","tagtagtag"]}},"/api/rabbits/{mac}/play":{"post":{"operationId":"api_play_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"stop":{},"url":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Play a sound or a stream from a public URL (mp3), or stop.","x-not-on":["v1"]}},"/api/rabbits/{mac}/podcast":{"get":{"operationId":"api_podcast_list_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The podcasts set on this rabbit."},"post":{"operationId":"api_podcast_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"episode":{},"feed":{},"stop":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Play a podcast episode.","x-not-on":["v1"]}},"/api/rabbits/{mac}/pomodoro":{"post":{"operationId":"api_pomodoro_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The pomodoro, as a press on the head: starts one, or cancels the one running.","x-not-on":["v1"]}},"/api/rabbits/{mac}/radio":{"post":{"operationId":"api_radio_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"station":{},"stop":{},"url":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Play a radio station, or stop it.","x-not-on":["v1"]}},"/api/rabbits/{mac}/reload":{"post":{"operationId":"api_reload_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Restart the rabbit so it loads the runtime served now (Naboot v2)."}},"/api/rabbits/{mac}/reminders":{"get":{"operationId":"api_reminders_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The reminders."},"post":{"operationId":"api_reminder_add_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"at":{},"confirm":{},"date":{},"notify":{},"repeat":{},"text":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"{\"at\": \"18:00\", \"text\": \"...\", \"repeat\": \"once|daily|weekdays|weekend\", \"date\": \"YYYY-MM-DD\" for once}."}},"/api/rabbits/{mac}/reminders/{rid}":{"delete":{"operationId":"api_reminder_delete_delete","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}},{"in":"path","name":"rid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Delete a reminder."}},"/api/rabbits/{mac}/rfid":{"post":{"operationId":"api_rfid_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"tag":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Bind a tag.","x-not-on":["v1"]}},"/api/rabbits/{mac}/rfid/seen":{"post":{"operationId":"api_rfid_seen_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"reader":{},"tag":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Report a tag seen by a reader (for external RFID readers).","x-not-on":["v1"]}},"/api/rabbits/{mac}/rfid/{tag}":{"delete":{"operationId":"api_rfid_delete_delete","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}},{"in":"path","name":"tag","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Unbind a tag."}},"/api/rabbits/{mac}/settings":{"get":{"operationId":"api_settings_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"What this warren will accept, and what it holds now \u2014 so a client can build its own form without hard-coding eight belly colours."}},"/api/rabbits/{mac}/sleep":{"post":{"operationId":"api_sleep_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"asleep":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Put the rabbit to sleep or wake it up (asleep: true/false)."}},"/api/rabbits/{mac}/speak":{"post":{"operationId":"api_speak_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"text":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Say a text in the rabbit's voice."}},"/api/rabbits/{mac}/state":{"get":{"operationId":"api_state_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"What the rabbit says about itself, asked now."}},"/api/rabbits/{mac}/taichi":{"post":{"operationId":"api_taichi_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"stop":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Start the tai-chi of 2006, or stop it ({\"stop\": true}).","x-not-on":["v1"]}},"/api/rabbits/{mac}/tell":{"post":{"operationId":"api_tell_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"minutes":{},"what":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"{\"what\": \"joke\" | \"ephemeris\" | \"transport\" | \"story\" | \"agenda\" | \"alerts\" | \"weather\" | \"clock\" | \"wakeup\" | \"twitch\" | \"pomodoro\" (starts one, or cancels it)","x-not-on":["v1"]}},"/api/rabbits/{mac}/transport/stop":{"post":{"operationId":"api_transport_stop_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"id":{},"name":{},"network":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"{\"network\": <id>, \"id\": <stop id from /transport/stops>, \"name\": <its name>}."}},"/api/rabbits/{mac}/transport/stops":{"get":{"operationId":"api_transport_stops_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}},{"in":"query","name":"network","required":false,"schema":{"type":"string"}},{"in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"?network=<id>&q=<name>: the stops a rabbit can be set to."}},"/api/rabbits/{mac}/update":{"post":{"operationId":"api_update_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1, a Karotz, a TagTagTag"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The update button, for a script (2026-11-13): the same image, the same signature check, the same way to the rabbit.","x-not-on":["v1","karotz","tagtagtag"]}},"/api/rabbits/{mac}/voices":{"get":{"operationId":"api_voices_get","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The voices it can take, your ElevenLabs ones included (id \"eleven@<voice id>\"), and the one it has; set one with /config {\"voice\": id}."}},"/api/rabbits/{mac}/volume":{"post":{"operationId":"api_volume_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"percent":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"400":{"description":"not on a Nabaztag v1, a Karotz"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Set the loudness now and keep it (percent: 0-100).","x-not-on":["v1","karotz"]}},"/api/rabbits/{mac}/weather/place":{"post":{"operationId":"api_weather_place_post","parameters":[{"description":"the rabbit's serial number (MAC, 12 hex digits)","in":"path","name":"mac","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"place":{}},"type":"object"}}}},"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"403":{"description":"read-only token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"The weather's town by name, as the page takes it: one match is set, several are listed for the caller to choose (send one back by lat/lon through /config), none"}},"/api/transport/networks":{"get":{"operationId":"api_transport_networks_get","parameters":[],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"Public transport networks a rabbit can follow."}},"/api/weather/places":{"get":{"operationId":"api_weather_places_get","parameters":[{"in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"ok (JSON)"},"401":{"description":"no or bad token"},"404":{"description":"not one of this account's rabbits"},"409":{"description":"the rabbit is asleep"},"503":{"description":"the rabbit is offline"}},"summary":"?q=<town>: candidates, with what /config takes (weather_place, weather_lat, weather_lon) -- the page's town picker, for a script."}}},"security":[{"bearer":[]}],"servers":[{"url":"https://terrier.cyberloutre.fr"}]}
