Chats

Notizen
Expertenlevel
Der API-Schlüssel sollte als Bearer-Token im Autorisierungsheader der Anfrage gesendet werden. Erhalten Sie Ihren API-Schlüssel.
Liste

API-Endpunkt:

GET
https://ai.roccomedia.de/api/v1/chats

Beispielanfrage:

curl --location --request GET 'https://ai.roccomedia.de/api/v1/chats' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Typ
Beschreibung
search
optional string
Die Suchanfrage.
search_by
optional string
Suche nach. Mögliche Werte sind: name für Name. Standardwert: name.
favorite
optional boolean
Nach Favoriten filtern.
sort_by
optional string
Sortieren nach. Mögliche Werte sind: id für Erstellungsdatum, name für Name. Standardwert: id.
sort
optional string
Sortieren. Mögliche Werte sind: desc für Absteigend, asc für Aufsteigend. Standardwert: desc.
per_page
optional integer
Ergebnisse pro Seite. Mögliche Werte sind: 10, 25, 50, 100. Standardwert: 10.
Anzeigen

API-Endpunkt:

GET
https://ai.roccomedia.de/api/v1/chats/{id}

Beispielanfrage:

curl --location --request GET 'https://ai.roccomedia.de/api/v1/chats/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Speichern

API-Endpunkt:

POST
https://ai.roccomedia.de/api/v1/chats

Beispielanfrage:

curl --location --request POST 'https://ai.roccomedia.de/api/v1/chats' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}' \
--data-urlencode 'description={description}'
Parameter
Typ
Beschreibung
name
erforderlich string
The chat name.
behavior
optional string
The behavior of the assistant.
Aktualisieren

API-Endpunkt:

PUT PATCH
https://ai.roccomedia.de/api/v1/chats/{id}

Beispielanfrage:

curl --location --request PUT 'https://ai.roccomedia.de/api/v1/chats/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Typ
Beschreibung
name
optional string
The chat name.
behavior
optional string
The behavior of the assistant.
favorite
optional boolean
Whether the chat is favorite or not.
Löschen

API-Endpunkt:

DELETE
https://ai.roccomedia.de/api/v1/chats/{id}

Beispielanfrage:

curl --location --request DELETE 'https://ai.roccomedia.de/api/v1/chats/{id}' \
--header 'Authorization: Bearer {api_key}'