Workflows
Endpunkte für Workflow-Management und -Ausführung
Benutzer-Workflows abrufen
Ruft alle Workflows ab, auf die der authentifizierte Benutzer Zugriff hat
Authorization<token>
API-Schlüssel zur Authentifizierung. Verwenden Sie das Format 'Bearer <Ihr-API-Schlüssel>'.
In: header
Response Body
curl -X GET "https://app.meingpt.com/api/workflows/v1/user-workflows"
{
"status": "success",
"workflows": [
{}
]
}
{
"status": "error",
"message": "string"
}
Workflow-Eingabevariablen abrufen
Ruft die Eingabevariablen/-parameter ab, die zum Ausführen eines bestimmten Workflows erforderlich sind
Authorization<token>
API-Schlüssel zur Authentifizierung. Verwenden Sie das Format 'Bearer <Ihr-API-Schlüssel>'.
In: header
Path Parameters
workflowIdstring
Die Workflow-ID
Response Body
curl -X GET "https://app.meingpt.com/api/workflows/v1/workflow-inputs/string"
{
"status": "success",
"inputs": [
{
"name": "string",
"type": "string",
"description": "string",
"defaultValue": null,
"options": [
{
"label": "string",
"value": "string"
}
]
}
]
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}
Einen Workflow ausführen
Führt einen Workflow mit den bereitgestellten Eingabeparametern aus
Authorization<token>
API-Schlüssel zur Authentifizierung. Verwenden Sie das Format 'Bearer <Ihr-API-Schlüssel>'.
In: header
Path Parameters
workflowIdstring
Die Workflow-ID, die ausgeführt werden soll
inputobject
Eingabeparameter für die Workflow-Ausführung
Empty Object
Response Body
curl -X POST "https://app.meingpt.com/api/workflows/v1/string/run" \ -H "Content-Type: application/json" \ -d '{ "input": {} }'
{
"status": "success",
"messages": [
{
"content": "string",
"role": "user",
"model": "string",
"knowledgeCollectionSearchResults": [
{
"knowledgeCollectionId": "string",
"knowledgeCollectionName": "string",
"queries": [
"string"
],
"resultComponents": [
{
"documentId": "string",
"documentTitle": "string",
"score": 0,
"result": "string",
"sourceNumber": 0
}
]
}
]
}
],
"documentUrl": "string"
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}