WebsitePlatform Login

Assistants

KI-Assistenten-Endpunkte

GET/assistants/v1/

Authorization

ApiKeyAuth
Authorization<token>

API-Schlüssel zur Authentifizierung. Verwenden Sie das Format 'Bearer <Ihr-API-Schlüssel>'.

In: header

Response Body

application/json

application/json

curl -X GET "https://app.meingpt.com/api/assistants/v1/"
{
  "assistants": [
    {
      "id": "string",
      "name": "string"
    }
  ]
}
{
  "status": "error",
  "message": "string"
}
POST/assistants/v1/{assistantId}/run

Authorization

ApiKeyAuth
Authorization<token>

API-Schlüssel zur Authentifizierung. Verwenden Sie das Format 'Bearer <Ihr-API-Schlüssel>'.

In: header

Path Parameters

assistantId*string

Die Assistenten-ID

Request Body

application/json

messages*array<>
Items1 <= items

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://app.meingpt.com/api/assistants/v1/string/run" \  -H "Content-Type: application/json" \  -d '{    "messages": [      {        "role": "system",        "content": "string"      }    ]  }'
{
  "text": "string",
  "model": "string",
  "messages": [
    {}
  ],
  "usage": {
    "promptTokens": 0,
    "completionTokens": 0
  },
  "citations": [
    "string"
  ]
}
{
  "status": "error",
  "message": "string"
}
{
  "status": "error",
  "message": "string"
}
{
  "status": "error",
  "message": "string"
}

AssistantId finden

  1. Gehe in den Bearbeitungsmodus deines Assistenten
  2. In der URL findest du hinter /assistants/ die AssistantId

AssistantId im Assistant Bearbeitungsmodus

Auf dieser Seite