Dokumente

Notizen
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Holen Sie sich Ihren API-Schlüssel.
Aufführen

API endpoint:

GET
https://chatgptbot.ch/api/v1/documents

Request example:

curl --location --request GET 'https://chatgptbot.ch/api/v1/documents' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Typ
Beschreibung
search
optional string
Die Suchanfrage.
search_by
optional string
Suchen nach. Possible values are: name for Name, result for Ergebnis. Defaults to: name.
template_id
optional integer
Nach Vorlagen-ID filtern. Possible values are: 1 for Freestyle, 2 for Über uns, 3 for Anzeige, 4 for Artikel, 5 for Blog-Einträge, 6 for Blog-Gliederung, 7 for Blog-Outro, 8 for Blog-Absatz, 9 for Blog-Beitrag, 10 for Blog-Abschnitt, 11 for Blog-Gesprächsthemen, 12 for Blog-Titel, 13 for Handlungsaufforderung, 14 for Inhalt neu schreiben, 15 for Inhaltszusammenfassung, 16 for Häufig gestellte Fragen, 17 for Hashtags, 18 for Überschrift, 19 for Wie es funktioniert, 20 for Meta-Beschreibung, 21 for Meta-Keywords, 22 for Leitbild, 23 for Newsletter, 24 for Pain-Agitate-Solution, 25 for Absatz, 26 for Pressemitteilung, 27 for Social-Media-Post, 28 for Social-Media-Beiträge, 29 for Start-up-Ideen, 30 for Start-up-Namen, 31 for Unterüberschrift, 32 for Kundenkommentar, 35 for Wertversprechen, 36 for Video-Beschreibung, 37 for Video-Skript, 38 for Video-Tags, 39 for Video-Titel, 40 for Visionserklärung, 41 for Produktblatt, 42 for Willkommens-E-Mail, 43 for Push-Benachrichtigung, 44 for Blog-Listicle, 45 for Grammatik des Inhalts, 46 for Blog-Tags, 47 for Vor- und Nachteile, 48 for Google-Werbung, 49 for Facebook-Werbung, 50 for Stellenbeschreibung, 51 for Bewertung, 52 for Feature-Bereich. Defaults to: freestyle.
favorite
optional boolean
Nach Favorit filtern.
sort_by
optional string
Sortieren nach. Possible values are: id for Erstellungsdatum, name for Name. Defaults to: id.
sort
optional string
Sortieren. Possible values are: desc for Absteigend, asc for Aufsteigend. Defaults to: desc.
per_page
optional integer
Ergebnisse pro Seite. Possible values are: 10, 25, 50, 100. Defaults to: 10.
Zeigen

API endpoint:

GET
https://chatgptbot.ch/api/v1/documents/{id}

Request example:

curl --location --request GET 'https://chatgptbot.ch/api/v1/documents/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://chatgptbot.ch/api/v1/documents

Request example:

curl --location --request POST 'https://chatgptbot.ch/api/v1/documents' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}' \
--data-urlencode 'prompt={prompt}'
Parameter
Typ
Beschreibung
name
erforderlich string
The document name.
prompt
erforderlich string
Die Anweisungen für die KI.
creativity
erforderlich float
The creative level of the result. Possible values are: 0 for Wiederholend, 0.25 for Deterministisch, 0.5 for Original, 0.75 for Kreativ, 1 for Imaginative. Defaults to: 0.5.
Aktualisieren

API endpoint:

PUT PATCH
https://chatgptbot.ch/api/v1/documents/{id}

Request example:

curl --location --request PUT 'https://chatgptbot.ch/api/v1/documents/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Typ
Beschreibung
name
optional string
The document name.
result
optional string
Das Dokumentergebnis.
favorite
optional boolean
Whether the document is favorite or not.
Löschen

API endpoint:

DELETE
https://chatgptbot.ch/api/v1/documents/{id}

Request example:

curl --location --request DELETE 'https://chatgptbot.ch/api/v1/documents/{id}' \
--header 'Authorization: Bearer {api_key}'