Sorhage Solutions API

Die zentralen Tools der KI-Telefon- und WhatsApp-Agenten. Jede Funktion gibt es genau einmal, für alle Hotels.

Aufbau

  • PMS-Tools: /v1/tools/pms/<pms>/<funktion>, zum Beispiel /v1/tools/pms/3rpms/get_availability. Gleiche Funktionen heißen in jedem PMS gleich.
  • Standardtools: /v1/tools/<funktion>, zum Beispiel /v1/tools/message. Sie leiten ein Anliegen an das Hotelteam weiter.
  • Das Tool in ElevenLabs heißt wie die Adresse: pms_3rpms_get_availability, std_message.
  • Schreibweise überall snake_case, Datum YYYY-MM-DD, Uhrzeit HH:MM.

In ElevenLabs einrichten

Die 13 Tools sind im ElevenLabs-Konto bereits zentral angelegt. Ein Agent bekommt sie über seine Action Cards, es wird nichts neu angelegt. Für ein neues Tool gilt:

  1. Typ: Webhook, Methode POST.
  2. URL: die volle Adresse, die unten bei jedem Tool steht, zum Beispiel https://api.sorhage.dev/v1/tools/pms/3rpms/get_availability.
  3. Header: genau einer. Typ Secret, Name X-Sorhage-Auth, Secret SORHAGE_TOOL_AUTH_FLOTTE.
  4. Felder im Body: wie unten bei „Felder“. Die vier system__…-Felder als Dynamic Variable mit gleichem Namen anlegen; ElevenLabs füllt sie selbst.
  5. Name: wie die Adresse, pms_<pms>_<funktion> oder std_<funktion>.

Damit ein Agent die Tools nutzen darf, muss er einem Hotel zugeordnet sein (Verwaltung: PUT /v1/admin/agents/{agent_id}). Ein Webhook beim Gesprächsbeginn ist nicht nötig.

Verwaltung

Unter /v1/admin lassen sich Hotels, Einstellungen, PMS-Zugänge und Agenten lesen und ändern, ohne Veröffentlichung. Die Oberfläche dazu liegt unter /admin. Header X-Sorhage-Admin-Key, ein eigener Schlüssel, den kein Agent kennt. PMS-Schlüssel können gesetzt, aber nie ausgelesen werden.

Absicherung

  1. Ein Key. Header X-Sorhage-Auth, in ElevenLabs als Secret hinterlegt. Ohne ihn antwortet die API mit 401.
  2. Agent-ID. system__agent_id setzt ElevenLabs selbst, nicht das Sprachmodell. Daraus ergibt sich das Hotel. Unbekannte Agenten bekommen 403.
  3. Laufendes Gespräch. Die API prüft bei ElevenLabs, dass system__conversation_id gerade läuft und zu diesem Agenten gehört. Sonst 403.
  4. PMS des Hauses. Das PMS in der Adresse ist nur Wegweiser. Maßgeblich ist der hinterlegte Zugang des Hotels.

Antworten

Jede Antwort ist flach und für das Sprachmodell geschrieben: status (success oder error), bei Fehlern error als Code, immer message mit dem nächsten Schritt für den Agenten und request_id für die Nachverfolgung.

Fehler, auf die der Agent reagieren kann, kommen mit HTTP 200. Echte Fehlercodes gibt es nur, wenn der Aufruf nicht berechtigt ist (401, 403), die Adresse nicht existiert (404) oder das Limit erreicht ist (429).

Fehlercodes

missing_fields invalid_dates pms_error pms_not_connected pms_mismatch pms_function_unavailable no_config notification_failed no_availability category_not_found category_not_allowed category_priceless max_occupancy_exceeded room_unavailable category_restricted min_stay max_stay rate_plan_missing booking_disabled booking_failed booking_in_progress booking_unknown not_found ambiguous ambiguous_name cancelled rate_limited internal_error

PMS-Tools: 3RPMS 4

POST/v1/tools/pms/3rpms/create_reservationschreibt ins PMSBook one room, or with room_count several rooms of the same category as ONE reservation, in the hotel's booking system.#

Book one room, or with room_count several rooms of the same category as ONE reservation, in the hotel's booking system. Use only after pms_3rpms_get_availability succeeded in this call and the guest explicitly confirmed the booking. Returns reservation_number and total_price. Never call it twice for the same booking. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_3rpms_create_reservation

Felder

FeldTypBedeutung
check_in_datePflichtstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
check_out_datePflichtstringDeparture date, format YYYY-MM-DD, e.g. 2026-12-05.
guestsPflichtintegerNumber of guests as an integer, e.g. 2.
room_category_idPflichtstringcategory_id of the chosen category from the availability tool, unchanged, e.g. 402.
breakfastPflichtbooleantrue only if the guest explicitly wants breakfast, otherwise false.
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
emailoptionalstringEmail address, e.g. anna@example.org. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
booker_first_nameoptionalstringOnly if the caller books for someone else: the caller's first name. Otherwise omit.
booker_last_nameoptionalstringOnly if the caller books for someone else: the caller's last name. Otherwise omit.
booking_typeoptionalstring · private | businessprivate or business. Set business only if the caller mentions a company or a business trip; otherwise omit.
company_nameoptionalstringCompany name for business bookings, e.g. ACME GmbH. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
room_countoptionalintegerNumber of rooms of the same category, e.g. 3. Only for several rooms; omit for one room. guests is then the number of persons per room.
group_nameoptionalstringName of the group or occasion for several rooms, e.g. Kegelclub Herford. Omit if not given.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/3rpms/create_reservation" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "check_in_date": "2026-12-03",
  "check_out_date": "2026-12-05",
  "guests": 2,
  "room_category_id": "402",
  "breakfast": true,
  "last_name": "Beispiel",
  "first_name": "Anna",
  "email": "anna@example.org",
  "phone": "+491701234567",
  "company_name": "ACME",
  "room_count": 3,
  "group_name": "Kegelclub",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "booking_unknown",
  "request_id": "mock-0000",
  "message": "Der Ausgang der Buchung ist UNKLAR. Bestätige KEINE Buchung und KEINE Reservierungsnummer und sage auch nicht, dass die Buchung fehlgeschlagen ist. Sage, dass das Team die Reservierung prüft und sich meldet, und nimm einen Rückruf auf. Lege KEINE neue Reservierung an."
}
POST/v1/tools/pms/3rpms/find_reservationFind an existing reservation and verify the caller.#

Find an existing reservation and verify the caller. Without parameters it searches by the calling number (a hint, not a verification). Pass first_name and last_name, or reservation_number, to verify. Returns matches with guest_name, reservation_number, room_number and dates; access_code only if released. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_3rpms_find_reservation

Felder

FeldTypBedeutung
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
last_nameoptionalstringGuest's last name as understood, e.g. Beispiel.
reservation_numberoptionalstringThe hotel's reservation number, e.g. 524301. Booking portal numbers do not count. Omit if unknown.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/3rpms/find_reservation" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "first_name": "Anna",
  "last_name": "Beispiel",
  "reservation_number": "524301",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "matches": [
    {
      "guest_name": "Jonas Kestner",
      "reservation_number": "500100",
      "room_number": "207",
      "category_name": "Standard-Einzelzimmer",
      "check_in_date": "2026-11-23",
      "check_out_date": "2026-11-24",
      "access_code": "4729",
      "access_code_exists": true
    }
  ],
  "access_code_available": true,
  "verified_by": "reservation_number",
  "request_id": "mock-0000",
  "message": "Buchung gefunden: Jonas Kestner, Reservierungsnummer 500100. Anreise ist heute. Zimmer 207. Der Anrufer gilt damit als bestätigt. Der persönliche Zugangscode lautet 4 7 2 9. Nenne ihn Ziffer für Ziffer, langsam."
}
POST/v1/tools/pms/3rpms/get_access_codeGive the caller their personal access code for the house or room door.#

Give the caller their personal access code for the house or room door. Without parameters it searches by the calling number. Pass first_name and last_name, or reservation_number, to identify the caller. The response carries access_code only if access_code_available is true; otherwise the message says why and what to do next. Never state a code that is not in the response. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_3rpms_get_access_code

Felder

FeldTypBedeutung
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
last_nameoptionalstringGuest's last name as understood, e.g. Beispiel.
reservation_numberoptionalstringThe hotel's reservation number, e.g. 524301. Booking portal numbers do not count. Omit if unknown.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/3rpms/get_access_code" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "first_name": "Anna",
  "last_name": "Beispiel",
  "reservation_number": "524301",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "access_code_available": true,
  "access_code": "4729",
  "guest_name": "Jonas Kestner",
  "reservation_number": "500100",
  "room_number": "207",
  "check_in_date": "2026-11-23",
  "check_out_date": "2026-11-24",
  "verified_by": "reservation_number",
  "request_id": "mock-0000",
  "message": "Buchung gefunden: Jonas Kestner, Reservierungsnummer 500100. Anreise ist heute. Zimmer 207. Der Anrufer gilt damit als bestätigt. Der persönliche Zugangscode lautet 4 7 2 9. Nenne ihn Ziffer für Ziffer, langsam."
}
POST/v1/tools/pms/3rpms/get_availabilityCheck live room availability and prices for a stay.#

Check live room availability and prices for a stay. Use before stating any availability or price and always before pms_3rpms_create_reservation. Returns available_categories with category_id, name, total_price and price_per_night. For several rooms pass room_count; guests is then the number of persons per room and total_price covers all rooms. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_3rpms_get_availability

Felder

FeldTypBedeutung
check_in_datePflichtstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
check_out_datePflichtstringDeparture date, format YYYY-MM-DD, e.g. 2026-12-05.
guestsPflichtintegerNumber of guests as an integer, e.g. 2.
room_countoptionalintegerNumber of rooms of the same category, e.g. 3. Only for several rooms; omit for one room. guests is then the number of persons per room.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/3rpms/get_availability" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "check_in_date": "2026-12-03",
  "check_out_date": "2026-12-05",
  "guests": 2,
  "room_count": 3,
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "no_availability",
  "info_only_categories": [],
  "nights": 2,
  "request_id": "mock-0000",
  "message": "Für diesen Zeitraum ist telefonisch nichts buchbar. Sage das offen und biete an, einen anderen Zeitraum oder eine andere Personenzahl zu prüfen. Erfinde KEINE Alternative."
}

PMS-Tools: ibelsa 3

POST/v1/tools/pms/ibelsa/create_reservationschreibt ins PMSBook one room, or with room_count several rooms of the same category as ONE reservation, in the hotel's booking system (hotels on ibelsa).#

Book one room, or with room_count several rooms of the same category as ONE reservation, in the hotel's booking system (hotels on ibelsa). Use only after pms_ibelsa_get_availability succeeded in this call and the guest explicitly confirmed the booking. Returns reservation_number and total_price. To book a rate from other_rates pass its rate_id; without rate_id the standard rate is booked, with breakfast true the breakfast rate. Never call it twice for the same booking; a booking cannot be changed afterwards through this tool. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_ibelsa_create_reservation

Felder

FeldTypBedeutung
check_in_datePflichtstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
check_out_datePflichtstringDeparture date, format YYYY-MM-DD, e.g. 2026-12-05.
guestsPflichtintegerNumber of guests as an integer, e.g. 2.
room_category_idPflichtstringcategory_id of the chosen category from the availability tool, unchanged, e.g. 402.
breakfastPflichtbooleantrue only if the guest explicitly wants breakfast, otherwise false.
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
emailoptionalstringEmail address, e.g. anna@example.org. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
booker_first_nameoptionalstringOnly if the caller books for someone else: the caller's first name. Otherwise omit.
booker_last_nameoptionalstringOnly if the caller books for someone else: the caller's last name. Otherwise omit.
booking_typeoptionalstring · private | businessprivate or business. Set business only if the caller mentions a company or a business trip; otherwise omit.
company_nameoptionalstringCompany name for business bookings, e.g. ACME GmbH. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
room_countoptionalintegerNumber of rooms of the same category, e.g. 3. Only for several rooms; omit for one room. guests is then the number of persons per room.
group_nameoptionalstringName of the group or occasion for several rooms, e.g. Kegelclub Herford. Omit if not given.
rate_idoptionalstringOnly when the guest chose a rate from other_rates of the availability answer: its rate_id, unchanged, e.g. 49392. Otherwise omit.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/ibelsa/create_reservation" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "check_in_date": "2026-12-03",
  "check_out_date": "2026-12-05",
  "guests": 2,
  "room_category_id": "402",
  "breakfast": true,
  "last_name": "Beispiel",
  "first_name": "Anna",
  "email": "anna@example.org",
  "phone": "+491701234567",
  "company_name": "ACME",
  "room_count": 3,
  "group_name": "Kegelclub",
  "rate_id": "49392",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "booking_unknown",
  "request_id": "mock-0000",
  "message": "Der Ausgang der Buchung ist UNKLAR. Bestätige KEINE Buchung und KEINE Reservierungsnummer und sage auch nicht, dass die Buchung fehlgeschlagen ist. Sage, dass das Team die Reservierung prüft und sich meldet, und nimm einen Rückruf auf. Lege KEINE neue Reservierung an."
}
POST/v1/tools/pms/ibelsa/find_reservationFind an existing reservation and verify the caller (hotels on ibelsa).#

Find an existing reservation and verify the caller (hotels on ibelsa). Without parameters it searches by the calling number (a hint, not a verification). Pass first_name and last_name, or reservation_number, to verify. Returns matches with guest_name, reservation_number, room_number, category_name, dates, guests and rate_name. In houses where the reservation number is the check-in code, a search by name returns reservation_number and room_number only together with the right check_in_date (the arrival day of the booking); without it the booking is returned without these two. A search by name looks up to a year ahead; check_in_date also picks one of several bookings of the same guest. ibelsa holds no access codes and no payment state is returned. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_ibelsa_find_reservation

Felder

FeldTypBedeutung
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
last_nameoptionalstringGuest's last name as understood, e.g. Beispiel.
reservation_numberoptionalstringThe hotel's reservation number, e.g. 524301. Booking portal numbers do not count. Omit if unknown.
check_in_dateoptionalstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/ibelsa/find_reservation" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "first_name": "Anna",
  "last_name": "Beispiel",
  "reservation_number": "524301",
  "check_in_date": "2026-12-03",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "matches": [
    {
      "guest_name": "Jonas Kestner",
      "reservation_number": "33164",
      "room_number": "207",
      "category_name": "Standard-Einzelzimmer",
      "check_in_date": "2026-11-23",
      "check_out_date": "2026-11-24",
      "access_code": "",
      "access_code_exists": false,
      "guests": 2,
      "rate_name": "Standard Rate",
      "checked_in": false
    }
  ],
  "access_code_available": false,
  "verified_by": "name",
  "request_id": "mock-0000",
  "message": "Buchung gefunden: Jonas Kestner, Reservierungsnummer 33164. Anreise ist heute. Zimmer 207. Der Anrufer gilt damit als bestätigt. Bestätige ihm kurz Namen und Anreisedatum. Zum Zahlungsstand liegt hier nichts vor: nenne keinen. Einen Zugangscode gibt es in diesem Buchungssystem nicht: nenne keinen und erfinde keinen."
}
POST/v1/tools/pms/ibelsa/get_availabilityCheck live room availability and prices for a stay (hotels on ibelsa).#

Check live room availability and prices for a stay (hotels on ibelsa). Use before stating any availability or price and always before pms_ibelsa_create_reservation. Returns available_categories with category_id, name, total_price, price_per_night and, where breakfast can be booked, total_price_with_breakfast. A category may carry other_rates: further bookable rates with rate_id, name and their own total_price. For several rooms pass room_count; guests is then the number of persons per room and total_price covers all rooms. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_ibelsa_get_availability

Felder

FeldTypBedeutung
check_in_datePflichtstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
check_out_datePflichtstringDeparture date, format YYYY-MM-DD, e.g. 2026-12-05.
guestsPflichtintegerNumber of guests as an integer, e.g. 2.
room_countoptionalintegerNumber of rooms of the same category, e.g. 3. Only for several rooms; omit for one room. guests is then the number of persons per room.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/ibelsa/get_availability" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "check_in_date": "2026-12-03",
  "check_out_date": "2026-12-05",
  "guests": 2,
  "room_count": 3,
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "no_availability",
  "info_only_categories": [],
  "nights": 2,
  "request_id": "mock-0000",
  "message": "Für diesen Zeitraum ist telefonisch nichts buchbar. Sage das offen und biete an, einen anderen Zeitraum oder eine andere Personenzahl zu prüfen. Erfinde KEINE Alternative."
}

PMS-Tools: Apaleo 3

POST/v1/tools/pms/apaleo/create_reservationschreibt ins PMSBook one room, or with room_count several rooms of the same category as ONE booking, in the hotel's booking system (hotels on Apaleo).#

Book one room, or with room_count several rooms of the same category as ONE booking, in the hotel's booking system (hotels on Apaleo). Use only after pms_apaleo_get_availability succeeded in this call and the guest explicitly confirmed the booking. Returns reservation_number and total_price. Never call it twice for the same booking; a booking cannot be changed afterwards through this tool. If the rate needs a payment guarantee the answer is booking_disabled: take a room request instead. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_apaleo_create_reservation

Felder

FeldTypBedeutung
check_in_datePflichtstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
check_out_datePflichtstringDeparture date, format YYYY-MM-DD, e.g. 2026-12-05.
guestsPflichtintegerNumber of guests as an integer, e.g. 2.
room_category_idPflichtstringcategory_id of the chosen category from the availability tool, unchanged, e.g. 402.
breakfastPflichtbooleantrue only if the guest explicitly wants breakfast, otherwise false.
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
emailoptionalstringEmail address, e.g. anna@example.org. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
booker_first_nameoptionalstringOnly if the caller books for someone else: the caller's first name. Otherwise omit.
booker_last_nameoptionalstringOnly if the caller books for someone else: the caller's last name. Otherwise omit.
booking_typeoptionalstring · private | businessprivate or business. Set business only if the caller mentions a company or a business trip; otherwise omit.
company_nameoptionalstringCompany name for business bookings, e.g. ACME GmbH. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
room_countoptionalintegerNumber of rooms of the same category, e.g. 3. Only for several rooms; omit for one room. guests is then the number of persons per room.
group_nameoptionalstringName of the group or occasion for several rooms, e.g. Kegelclub Herford. Omit if not given.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/apaleo/create_reservation" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "check_in_date": "2026-12-03",
  "check_out_date": "2026-12-05",
  "guests": 2,
  "room_category_id": "402",
  "breakfast": true,
  "last_name": "Beispiel",
  "first_name": "Anna",
  "email": "anna@example.org",
  "phone": "+491701234567",
  "company_name": "ACME",
  "room_count": 3,
  "group_name": "Kegelclub",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "booking_unknown",
  "request_id": "mock-0000",
  "message": "Der Ausgang der Buchung ist UNKLAR. Bestätige KEINE Buchung und KEINE Reservierungsnummer und sage auch nicht, dass die Buchung fehlgeschlagen ist. Sage, dass das Team die Reservierung prüft und sich meldet, und nimm einen Rückruf auf. Lege KEINE neue Reservierung an."
}
POST/v1/tools/pms/apaleo/find_reservationFind an existing reservation and verify the caller (hotels on Apaleo).#

Find an existing reservation and verify the caller (hotels on Apaleo). Without parameters it searches by the calling number (a hint, not a verification). Pass first_name and last_name, or reservation_number, to verify. Returns matches with guest_name, reservation_number, room_number and dates. This tool never returns an access code. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_apaleo_find_reservation

Felder

FeldTypBedeutung
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
last_nameoptionalstringGuest's last name as understood, e.g. Beispiel.
reservation_numberoptionalstringThe hotel's reservation number, e.g. 524301. Booking portal numbers do not count. Omit if unknown.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/apaleo/find_reservation" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "first_name": "Anna",
  "last_name": "Beispiel",
  "reservation_number": "524301",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "matches": [
    {
      "guest_name": "Jonas Kestner",
      "reservation_number": "XPGMSXGF-1",
      "room_number": "207",
      "category_name": "Standard-Einzelzimmer",
      "check_in_date": "2026-11-23",
      "check_out_date": "2026-11-24",
      "access_code": "",
      "access_code_exists": false
    }
  ],
  "access_code_available": false,
  "verified_by": "name",
  "request_id": "mock-0000",
  "message": "Buchung gefunden: Jonas Kestner, Reservierungsnummer XPGMSXGF-1. Anreise ist heute. Zimmer 207. Der Anrufer gilt damit als bestätigt. Bestätige ihm kurz Namen und Anreisedatum. Zugangscodes gibt es über dieses Tool nicht: nenne KEINEN Code und erfinde keinen."
}
POST/v1/tools/pms/apaleo/get_availabilityCheck live room availability and prices for a stay (hotels on Apaleo).#

Check live room availability and prices for a stay (hotels on Apaleo). Use before stating any availability or price and always before pms_apaleo_create_reservation. Returns available_categories with category_id, name, total_price, price_per_night and, where breakfast can be booked, total_price_with_breakfast. A category with phone_booking false may be quoted but not booked by phone. For several rooms pass room_count; guests is then the number of persons per room and total_price covers all rooms. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabspms_apaleo_get_availability

Felder

FeldTypBedeutung
check_in_datePflichtstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
check_out_datePflichtstringDeparture date, format YYYY-MM-DD, e.g. 2026-12-05.
guestsPflichtintegerNumber of guests as an integer, e.g. 2.
room_countoptionalintegerNumber of rooms of the same category, e.g. 3. Only for several rooms; omit for one room. guests is then the number of persons per room.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/pms/apaleo/get_availability" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "check_in_date": "2026-12-03",
  "check_out_date": "2026-12-05",
  "guests": 2,
  "room_count": 3,
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "no_availability",
  "info_only_categories": [],
  "nights": 2,
  "request_id": "mock-0000",
  "message": "Für diesen Zeitraum ist telefonisch nichts buchbar. Sage das offen und biete an, einen anderen Zeitraum oder eine andere Personenzahl zu prüfen. Erfinde KEINE Alternative."
}

Standardtools 10

POST/v1/tools/booking_changePass a change request for an existing booking to the hotel.#

Pass a change request for an existing booking to the hotel. It does not change anything itself; the hotel confirms. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_booking_change

Felder

FeldTypBedeutung
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
requested_changePflichtstringThe requested change in one sentence, e.g. extend the stay by one night.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
reservation_numberoptionalstringThe hotel's reservation number, e.g. 524301. Booking portal numbers do not count. Omit if unknown.
check_in_dateoptionalstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
booking_typeoptionalstring · private | businessprivate or business. Set business only if the caller mentions a company or a business trip; otherwise omit.
company_nameoptionalstringCompany name for business bookings, e.g. ACME GmbH. Otherwise omit.
emailoptionalstringEmail address, e.g. anna@example.org. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/booking_change" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "last_name": "Beispiel",
  "requested_change": "extend",
  "first_name": "Anna",
  "reservation_number": "524301",
  "check_in_date": "2026-12-03",
  "company_name": "ACME",
  "email": "anna@example.org",
  "phone": "+491701234567",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "notification_failed",
  "request_id": "mock-0000",
  "message": "Die Meldung konnte wegen eines technischen Fehlers nicht an das Team übermittelt werden. Sage dem Gast offen, dass die Übermittlung nicht bestätigt werden konnte, und folge der vorgesehenen Fehlerbehandlung."
}
POST/v1/tools/callbackRecord a callback request for the hotel team.#

Record a callback request for the hotel team. Use when the caller wants to be called back. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_callback

Felder

FeldTypBedeutung
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
requestPflichtstringThe caller's request in one clear sentence.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
callback_dateoptionalstringRequested callback date, format YYYY-MM-DD. Omit for as soon as possible.
callback_timeoptionalstringRequested callback time, format HH:MM, e.g. 15:30. Omit for as soon as possible.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/callback" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "last_name": "Beispiel",
  "first_name": "Anna",
  "phone": "+491701234567",
  "callback_time": "15:30",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "notification_failed",
  "request_id": "mock-0000",
  "message": "Die Meldung konnte wegen eines technischen Fehlers nicht an das Team übermittelt werden. Sage dem Gast offen, dass die Übermittlung nicht bestätigt werden konnte, und folge der vorgesehenen Fehlerbehandlung."
}
POST/v1/tools/event_requestPass an event or celebration request to the hotel team.#

Pass an event or celebration request to the hotel team. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_event_request

Felder

FeldTypBedeutung
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
requestPflichtstringThe caller's request in one clear sentence.
event_typePflichtstringType of event, e.g. Hochzeit, Tagung, Geburtstag.
event_datePflichtstringDate of the event, format YYYY-MM-DD, e.g. 2027-06-12.
guestsPflichtintegerNumber of guests as an integer, e.g. 2.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
event_timeoptionalstringStart time of the event, format HH:MM, e.g. 18:00. Omit if not stated.
emailoptionalstringEmail address, e.g. anna@example.org. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/event_request" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "last_name": "Beispiel",
  "event_type": "Hochzeit",
  "event_date": "2027-06-12",
  "guests": 2,
  "first_name": "Anna",
  "event_time": "18:00",
  "email": "anna@example.org",
  "phone": "+491701234567",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "notification_failed",
  "request_id": "mock-0000",
  "message": "Die Meldung konnte wegen eines technischen Fehlers nicht an das Team übermittelt werden. Sage dem Gast offen, dass die Übermittlung nicht bestätigt werden konnte, und folge der vorgesehenen Fehlerbehandlung."
}
POST/v1/tools/invoicePass an invoice or accounting request to the hotel team.#

Pass an invoice or accounting request to the hotel team. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_invoice

Felder

FeldTypBedeutung
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
requestPflichtstringThe caller's request in one clear sentence.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
reservation_numberoptionalstringThe hotel's reservation number, e.g. 524301. Booking portal numbers do not count. Omit if unknown.
invoice_numberoptionalstringInvoice number if the caller has one. Otherwise omit.
check_in_dateoptionalstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
booking_typeoptionalstring · private | businessprivate or business. Set business only if the caller mentions a company or a business trip; otherwise omit.
company_nameoptionalstringCompany name for business bookings, e.g. ACME GmbH. Otherwise omit.
billing_addressoptionalstringBilling address if the caller gives one. Otherwise omit.
emailoptionalstringEmail address, e.g. anna@example.org. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/invoice" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "last_name": "Beispiel",
  "first_name": "Anna",
  "reservation_number": "524301",
  "check_in_date": "2026-12-03",
  "company_name": "ACME",
  "email": "anna@example.org",
  "phone": "+491701234567",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "notification_failed",
  "request_id": "mock-0000",
  "message": "Die Meldung konnte wegen eines technischen Fehlers nicht an das Team übermittelt werden. Sage dem Gast offen, dass die Übermittlung nicht bestätigt werden konnte, und folge der vorgesehenen Fehlerbehandlung."
}
POST/v1/tools/lost_itemReport a lost item to the hotel team.#

Report a lost item to the hotel team. Put the item in request; where it was left, departure date and shipping wishes in notes. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_lost_item

Felder

FeldTypBedeutung
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
requestPflichtstringThe caller's request in one clear sentence.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/lost_item" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "last_name": "Beispiel",
  "first_name": "Anna",
  "phone": "+491701234567",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "notification_failed",
  "request_id": "mock-0000",
  "message": "Die Meldung konnte wegen eines technischen Fehlers nicht an das Team übermittelt werden. Sage dem Gast offen, dass die Übermittlung nicht bestätigt werden konnte, und folge der vorgesehenen Fehlerbehandlung."
}
POST/v1/tools/maintenanceReport a technical problem in a room to the hotel team.#

Report a technical problem in a room to the hotel team. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_maintenance

Felder

FeldTypBedeutung
requestPflichtstringThe caller's request in one clear sentence.
room_numberPflichtstringRoom number as stated, e.g. 207.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/maintenance" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "room_number": "207",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "reference": "A1B2C3D4",
  "request_id": "mock-0000",
  "message": "Instandhaltungsticket aufgenommen und an das Team weitergeleitet."
}
POST/v1/tools/messagePass a general message from the caller to the hotel team.#

Pass a general message from the caller to the hotel team. Use when no other tool fits. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_message

Felder

FeldTypBedeutung
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
requestPflichtstringThe caller's request in one clear sentence.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/message" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "last_name": "Beispiel",
  "first_name": "Anna",
  "phone": "+491701234567",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "notification_failed",
  "request_id": "mock-0000",
  "message": "Die Meldung konnte wegen eines technischen Fehlers nicht an das Team übermittelt werden. Sage dem Gast offen, dass die Übermittlung nicht bestätigt werden konnte, und folge der vorgesehenen Fehlerbehandlung."
}
POST/v1/tools/parking_requestPass a parking space request to the hotel.#

Pass a parking space request to the hotel. The hotel confirms. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_parking_request

Felder

FeldTypBedeutung
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
check_in_datePflichtstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
check_out_datePflichtstringDeparture date, format YYYY-MM-DD, e.g. 2026-12-05.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
license_plateoptionalstringVehicle license plate, e.g. HF-AB 123. Omit if not stated.
reservation_numberoptionalstringThe hotel's reservation number, e.g. 524301. Booking portal numbers do not count. Omit if unknown.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/parking_request" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "last_name": "Beispiel",
  "check_in_date": "2026-12-03",
  "check_out_date": "2026-12-05",
  "first_name": "Anna",
  "license_plate": "HF-AB",
  "reservation_number": "524301",
  "phone": "+491701234567",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "notification_failed",
  "request_id": "mock-0000",
  "message": "Die Meldung konnte wegen eines technischen Fehlers nicht an das Team übermittelt werden. Sage dem Gast offen, dass die Übermittlung nicht bestätigt werden konnte, und folge der vorgesehenen Fehlerbehandlung."
}
POST/v1/tools/room_cancellationPass a cancellation request for an existing booking to the hotel.#

Pass a cancellation request for an existing booking to the hotel. It does not cancel anything itself; the hotel confirms. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_room_cancellation

Felder

FeldTypBedeutung
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
check_in_datePflichtstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
reservation_numberoptionalstringThe hotel's reservation number, e.g. 524301. Booking portal numbers do not count. Omit if unknown.
reasonoptionalstringReason for the cancellation if the caller gives one. Otherwise omit.
booking_typeoptionalstring · private | businessprivate or business. Set business only if the caller mentions a company or a business trip; otherwise omit.
company_nameoptionalstringCompany name for business bookings, e.g. ACME GmbH. Otherwise omit.
emailoptionalstringEmail address, e.g. anna@example.org. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/room_cancellation" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "last_name": "Beispiel",
  "check_in_date": "2026-12-03",
  "first_name": "Anna",
  "reservation_number": "524301",
  "company_name": "ACME",
  "email": "anna@example.org",
  "phone": "+491701234567",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "notification_failed",
  "request_id": "mock-0000",
  "message": "Die Meldung konnte wegen eines technischen Fehlers nicht an das Team übermittelt werden. Sage dem Gast offen, dass die Übermittlung nicht bestätigt werden konnte, und folge der vorgesehenen Fehlerbehandlung."
}
POST/v1/tools/room_requestPass a non-binding room request to the hotel.#

Pass a non-binding room request to the hotel. Use when a room cannot be booked directly. The hotel confirms availability and price. Returns a reference. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabsstd_room_request

Felder

FeldTypBedeutung
last_namePflichtstringGuest's last name as understood, e.g. Beispiel.
check_in_datePflichtstringArrival date, format YYYY-MM-DD, e.g. 2026-12-03.
check_out_datePflichtstringDeparture date, format YYYY-MM-DD, e.g. 2026-12-05.
first_nameoptionalstringGuest's first name, e.g. Anna. Omit if not given.
guestsoptionalintegerNumber of guests as an integer, e.g. 2.
roomsoptionalintegerNumber of rooms as an integer, e.g. 1. Omit if not stated.
room_typeoptionalstringRequested room category in the caller's words, e.g. Doppelzimmer. Omit if not stated.
booking_typeoptionalstring · private | businessprivate or business. Set business only if the caller mentions a company or a business trip; otherwise omit.
company_nameoptionalstringCompany name for business bookings, e.g. ACME GmbH. Otherwise omit.
billing_addressoptionalstringBilling address if the caller gives one. Otherwise omit.
emailoptionalstringEmail address, e.g. anna@example.org. Omit if not given.
phoneoptionalstringCallback number, only if the caller states one that differs from the calling number, e.g. +491701234567. Otherwise omit.
notesoptionalstringAdditional details for the hotel team in one or two sentences. Omit if none.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/room_request" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "last_name": "Beispiel",
  "check_in_date": "2026-12-03",
  "check_out_date": "2026-12-05",
  "first_name": "Anna",
  "guests": 2,
  "rooms": 1,
  "room_type": "Doppelzimmer",
  "company_name": "ACME",
  "email": "anna@example.org",
  "phone": "+491701234567",
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "error",
  "error": "notification_failed",
  "request_id": "mock-0000",
  "message": "Die Meldung konnte wegen eines technischen Fehlers nicht an das Team übermittelt werden. Sage dem Gast offen, dass die Übermittlung nicht bestätigt werden konnte, und folge der vorgesehenen Fehlerbehandlung."
}

Anruf-Tools 5

POST/v1/tools/telephony/emergency_contactnur im TelefonatConnect the caller to the emergency contact of the hotel.#

Connect the caller to the emergency contact of the hotel. Use only in an acute situation as the action card describes. Announce it in one short sentence in the same turn; the tool runs after you have finished speaking. A success does not mean someone picked up. If it fails, stay with the caller and help; never take a message instead. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabstelephony_emergency_contact

Felder

FeldTypBedeutung
summaryoptionalstringOne sentence on why the caller is being connected. Omit if unclear.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/telephony/emergency_contact" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "target": "emergency",
  "request_id": "mock-0000",
  "message": "Der Verbindungsversuch zum Notfallkontakt läuft. Sage dem Anrufer in einem kurzen Satz, dass du ihn jetzt verbindest, und sprich danach nicht weiter."
}
POST/v1/tools/telephony/transfer_1nur im TelefonatConnect the caller to a person at the hotel (destination 1; the action card says who that is).#

Connect the caller to a person at the hotel (destination 1; the action card says who that is). Use only when the action card tells you to transfer. Announce the transfer in one short sentence in the same turn; the tool runs after you have finished speaking and the call then leaves you. The call starts ringing; a success does not mean someone picked up. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabstelephony_transfer_1

Felder

FeldTypBedeutung
summaryoptionalstringOne sentence on why the caller is being connected. Omit if unclear.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/telephony/transfer_1" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "target": "transfer_1",
  "request_id": "mock-0000",
  "message": "Der Verbindungsversuch läuft. Sage dem Anrufer in einem kurzen Satz, dass du ihn jetzt verbindest, und sprich danach nicht weiter."
}
POST/v1/tools/telephony/transfer_2nur im TelefonatConnect the caller to a person at the hotel (destination 2; the action card says who that is).#

Connect the caller to a person at the hotel (destination 2; the action card says who that is). Use only when the action card tells you to transfer. Announce the transfer in one short sentence in the same turn; the tool runs after you have finished speaking and the call then leaves you. The call starts ringing; a success does not mean someone picked up. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabstelephony_transfer_2

Felder

FeldTypBedeutung
summaryoptionalstringOne sentence on why the caller is being connected. Omit if unclear.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/telephony/transfer_2" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "target": "transfer_2",
  "request_id": "mock-0000",
  "message": "Der Verbindungsversuch läuft. Sage dem Anrufer in einem kurzen Satz, dass du ihn jetzt verbindest, und sprich danach nicht weiter."
}
POST/v1/tools/telephony/transfer_3nur im TelefonatConnect the caller to a person at the hotel (destination 3; the action card says who that is).#

Connect the caller to a person at the hotel (destination 3; the action card says who that is). Use only when the action card tells you to transfer. Announce the transfer in one short sentence in the same turn; the tool runs after you have finished speaking and the call then leaves you. The call starts ringing; a success does not mean someone picked up. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabstelephony_transfer_3

Felder

FeldTypBedeutung
summaryoptionalstringOne sentence on why the caller is being connected. Omit if unclear.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/telephony/transfer_3" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "target": "transfer_3",
  "request_id": "mock-0000",
  "message": "Der Verbindungsversuch läuft. Sage dem Anrufer in einem kurzen Satz, dass du ihn jetzt verbindest, und sprich danach nicht weiter."
}
POST/v1/tools/telephony/transfer_4nur im TelefonatConnect the caller to a person at the hotel (destination 4; the action card says who that is).#

Connect the caller to a person at the hotel (destination 4; the action card says who that is). Use only when the action card tells you to transfer. Announce the transfer in one short sentence in the same turn; the tool runs after you have finished speaking and the call then leaves you. The call starts ringing; a success does not mean someone picked up. On error the response carries status=error, an error code and a message that says what to do next.

Tool in ElevenLabstelephony_transfer_4

Felder

FeldTypBedeutung
summaryoptionalstringOne sentence on why the caller is being connected. Omit if unclear.
system__agent_idPflichtstringElevenLabs agent id. Set by the platform, never by the language model. Identifies the hotel.
system__conversation_idPflichtstringElevenLabs conversation id. The call must belong to a running conversation of this agent.
system__caller_idPflichtstringCalling number as delivered by the platform.
system__called_numberoptionalstringCalled number as delivered by the platform.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/tools/telephony/transfer_4" \
  -H "X-Sorhage-Auth: $KEY" \
  -H "content-type: application/json" \
  -d '{
  "system__agent_id": "agent_0000example",
  "system__conversation_id": "conv_0000example",
  "system__caller_id": "+491701234567",
  "system__called_number": "+4952210000000"
}'
Beispielantwort 200
{
  "status": "success",
  "target": "transfer_4",
  "request_id": "mock-0000",
  "message": "Der Verbindungsversuch läuft. Sage dem Anrufer in einem kurzen Satz, dass du ihn jetzt verbindest, und sprich danach nicht weiter."
}

Verwaltung 18

GET/v1/admin/agentsAdmin-KeyAlle zugeordneten Agenten mit Hotel und Status.#

Alle zugeordneten Agenten mit Hotel und Status.

Beispielaufruf
curl -X GET "https://api.sorhage.dev/v1/admin/agents" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
PUT/v1/admin/agents/{agent_id}Admin-KeyAgent einem Hotel zuordnen. Ab dann werden seine Tool-Aufrufe angenommen (nur in einem laufenden Gespräch).#

Agent einem Hotel zuordnen. Ab dann werden seine Tool-Aufrufe angenommen (nur in einem laufenden Gespräch).

Felder

FeldTypBedeutung
hotelPflichtstringKurzname des Hotels (slug).
write_mode_capoptionalstring · disabled | dry_run | live
allowed_functionsoptionalarrayStandard ["*"] = alle Tools.
noteoptionalstring
Beispielaufruf
curl -X PUT "https://api.sorhage.dev/v1/admin/agents/{agent_id}" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
DELETE/v1/admin/agents/{agent_id}Admin-KeyAgent abschalten. Der Eintrag bleibt, die Historie bleibt lesbar.#

Agent abschalten. Der Eintrag bleibt, die Historie bleibt lesbar.

Beispielaufruf
curl -X DELETE "https://api.sorhage.dev/v1/admin/agents/{agent_id}" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
GET/v1/admin/callsAdmin-KeyLetzte Tool-Aufrufe: Zeit, Agent, Tool, Ergebnis, Dauer. Ohne Gästedaten.#

Letzte Tool-Aufrufe: Zeit, Agent, Tool, Ergebnis, Dauer. Ohne Gästedaten.

Adresse

NameOrtBedeutung
agent_idPflichtquerynur dieser Agent
limitPflichtquery1 bis 500, Standard 50
Beispielaufruf
curl -X GET "https://api.sorhage.dev/v1/admin/calls" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
GET/v1/admin/hotelsAdmin-KeyAlle Hotels mit Status, PMS-Zugang (ohne Schlüssel) und zugeordneten Agenten.#

Alle Hotels mit Status, PMS-Zugang (ohne Schlüssel) und zugeordneten Agenten.

Beispielaufruf
curl -X GET "https://api.sorhage.dev/v1/admin/hotels" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
GET/v1/admin/hotels/{slug}Admin-KeyEin Hotel vollständig: Einstellungen, PMS-Zugang (ohne Schlüssel), Agenten.#

Ein Hotel vollständig: Einstellungen, PMS-Zugang (ohne Schlüssel), Agenten.

Beispielaufruf
curl -X GET "https://api.sorhage.dev/v1/admin/hotels/{slug}" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
PUT/v1/admin/hotels/{slug}Admin-KeyHotel anlegen oder ändern. Ein neues Hotel startet im Probemodus (dry_run): es wird nichts verschickt.#

Hotel anlegen oder ändern. Ein neues Hotel startet im Probemodus (dry_run): es wird nichts verschickt.

Felder

FeldTypBedeutung
nameoptionalstringAnzeigename, z. B. ART Hotel Braun. Pflicht beim Anlegen.
statusoptionalstring · active | pausedpaused = alle Tool-Aufrufe werden abgelehnt.
timezoneoptionalstringStandard Europe/Berlin.
Beispielaufruf
curl -X PUT "https://api.sorhage.dev/v1/admin/hotels/{slug}" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
POST/v1/admin/hotels/{slug}/checkAdmin-KeyPrüft den PMS-Zugang live und vergleicht Kategorien und Raten mit den Einstellungen.#

Prüft den PMS-Zugang live und vergleicht Kategorien und Raten mit den Einstellungen.

Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/admin/hotels/{slug}/check" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
GET/v1/admin/hotels/{slug}/configAdmin-KeyEinstellungen eines Hotels lesen (Empfänger, SMS-Texte, Raten, Zugangscode-Regeln).#

Einstellungen eines Hotels lesen (Empfänger, SMS-Texte, Raten, Zugangscode-Regeln).

Beispielaufruf
curl -X GET "https://api.sorhage.dev/v1/admin/hotels/{slug}/config" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
PATCH/v1/admin/hotels/{slug}/configAdmin-KeyEinstellungen in Teilen ändern. Objekte werden zusammengeführt, Listen und Werte ersetzt, null entfernt einen Eintrag. Ungültiges wird abgelehnt, nichts wird gespeichert.#

Einstellungen in Teilen ändern. Objekte werden zusammengeführt, Listen und Werte ersetzt, null entfernt einen Eintrag. Ungültiges wird abgelehnt, nichts wird gespeichert.

Felder

FeldTypBedeutung
notificationsoptionalobjectz. B. {"email_to": ["team@hotel.de"], "mode": "live"}
Beispielaufruf
curl -X PATCH "https://api.sorhage.dev/v1/admin/hotels/{slug}/config" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
PUT/v1/admin/hotels/{slug}/configAdmin-KeyEinstellungen vollständig ersetzen.#

Einstellungen vollständig ersetzen.

Beispielaufruf
curl -X PUT "https://api.sorhage.dev/v1/admin/hotels/{slug}/config" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
PUT/v1/admin/hotels/{slug}/pms_connectionAdmin-KeyPMS-Zugang hinterlegen. Der Schlüssel wird verschlüsselt gespeichert und nie zurückgegeben; ohne api_key bleibt der gespeicherte erhalten.#

PMS-Zugang hinterlegen. Der Schlüssel wird verschlüsselt gespeichert und nie zurückgegeben; ohne api_key bleibt der gespeicherte erhalten.

Felder

FeldTypBedeutung
pms_typePflichtstringz. B. 3rpms
endpointPflichtstringhttps-Adresse des PMS, z. B. https://www.3rpms.de/graphql
api_keyoptionalstringPMS-Schlüssel. Nur schreiben.
write_modeoptionalstring · disabled | dry_run | livedry_run = Buchungen simuliert.
Beispielaufruf
curl -X PUT "https://api.sorhage.dev/v1/admin/hotels/{slug}/pms_connection" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
GET/v1/admin/telephony/checkAdmin-KeyPrüft den Twilio-Zugang direkt bei Twilio, ohne Anruf. Meldet nur Status und Form, nie einen Wert. Mit number auch, ob diese Nummer im Konto liegt.#

Prüft den Twilio-Zugang direkt bei Twilio, ohne Anruf. Meldet nur Status und Form, nie einen Wert. Mit number auch, ob diese Nummer im Konto liegt.

Adresse

NameOrtBedeutung
numberPflichtqueryoptional, Nummer im Format +49…
Beispielaufruf
curl -X GET "https://api.sorhage.dev/v1/admin/telephony/check" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
GET/v1/admin/telephony/numbersAdmin-KeyTelefonnummern im Twilio-Konto: Nummer, Bezeichnung, ob der Adressnachweis hinterlegt ist, und wohin Anrufe gerade gehen (voice_url).#

Telefonnummern im Twilio-Konto: Nummer, Bezeichnung, ob der Adressnachweis hinterlegt ist, und wohin Anrufe gerade gehen (voice_url).

Beispielaufruf
curl -X GET "https://api.sorhage.dev/v1/admin/telephony/numbers" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
GET/v1/admin/telephony/numbers/availableAdmin-KeyFreie Nummern bei Twilio suchen, mit Monatspreis. Kostet nichts. purchase_ready sagt, ob ein Adressnachweis für den Kauf vorhanden ist.#

Freie Nummern bei Twilio suchen, mit Monatspreis. Kostet nichts. purchase_ready sagt, ob ein Adressnachweis für den Kauf vorhanden ist.

Adresse

NameOrtBedeutung
containsPflichtqueryVorwahl oder Ziffern, z. B. 5221
countryPflichtqueryStandard DE
typePflichtquerylocal (Standard), mobile, toll_free
Beispielaufruf
curl -X GET "https://api.sorhage.dev/v1/admin/telephony/numbers/available" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
POST/v1/admin/telephony/numbers/buyAdmin-KeyKauft genau diese Nummer bei Twilio. Kostet Geld (Monatspreis). Ohne confirm=true wird nichts gekauft. Der Adressnachweis wird von einer vorhandenen Nummer mit nächster Vorwahl übernommen.#

Kauft genau diese Nummer bei Twilio. Kostet Geld (Monatspreis). Ohne confirm=true wird nichts gekauft. Der Adressnachweis wird von einer vorhandenen Nummer mit nächster Vorwahl übernommen.

Felder

FeldTypBedeutung
phone_numberPflichtstringNummer aus der Suche, e.g. +4952210000005.
nameoptionalstringBezeichnung in Twilio, e.g. Hotel-Beispiel.
confirmPflichtbooleanMuss true sein.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/admin/telephony/numbers/buy" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY" \
  -H "content-type: application/json" \
  -d '{
  "phone_number": "+4952210000005",
  "name": "Hotel-Beispiel",
  "confirm": true
}'
GET/v1/admin/telephony/numbers/changesAdmin-KeyÄnderungsverlauf der Nummern aus dem Twilio-Protokoll seit ?since=JJJJ-MM-TT: je Änderung Nummer, Zeit und Wert vorher/nachher. Nur lesend.#

Änderungsverlauf der Nummern aus dem Twilio-Protokoll seit ?since=JJJJ-MM-TT: je Änderung Nummer, Zeit und Wert vorher/nachher. Nur lesend.

Beispielaufruf
curl -X GET "https://api.sorhage.dev/v1/admin/telephony/numbers/changes" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY"
POST/v1/admin/telephony/numbers/importAdmin-KeyLegt eine Nummer des Twilio-Kontos in ElevenLabs an, damit ihr ein Agent zugewiesen werden kann. Anrufe auf die Nummer gehen danach zu ElevenLabs.#

Legt eine Nummer des Twilio-Kontos in ElevenLabs an, damit ihr ein Agent zugewiesen werden kann. Anrufe auf die Nummer gehen danach zu ElevenLabs.

Felder

FeldTypBedeutung
phone_numberPflichtstringNummer aus dem Twilio-Konto, e.g. +4952210000005.
labeloptionalstringBezeichnung in ElevenLabs, e.g. Hotel-Beispiel.
confirmPflichtbooleanMuss true sein.
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/admin/telephony/numbers/import" \
  -H "X-Sorhage-Admin-Key: $ADMIN_KEY" \
  -H "content-type: application/json" \
  -d '{
  "phone_number": "+4952210000005",
  "label": "Hotel-Beispiel",
  "confirm": true
}'

Gesprächsbeginn 1

POST/v1/initiationOptional ElevenLabs conversation initiation webhook: the start variables of the hotel (e.g. first_message).#

Optional ElevenLabs conversation initiation webhook: the start variables of the hotel (e.g. first_message).

Felder

FeldTypBedeutung
agent_idPflichtstring
conversation_idoptionalstring
Beispielaufruf
curl -X POST "https://api.sorhage.dev/v1/initiation" \
  -H "X-Sorhage-Auth: $KEY"

Betrieb 1

GET/healthohne KeyLiveness check.#

Liveness check.

Beispielaufruf
curl -X GET "https://api.sorhage.dev/health"

Erzeugt aus den Tool-Definitionen (scripts/openapi.py). Version 1.0.0 · 41 Adressen