POST
/
v1
/
applications
curl --request POST \
  --url https://guard-api.metatext.ai/v1/applications \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "provider": "OpenAI",
  "model": "gpt-4o",
  "parameters": {
    "system_prompt": "<string>",
    "temperature": 0.1,
    "max_tokens": 100,
    "top_p": 0.1,
    "top_k": 1
  },
  "created": 123,
  "updated": 123
}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "provider": "OpenAI",
  "model": "gpt-4o",
  "parameters": {
    "system_prompt": "<string>",
    "temperature": 0.1,
    "max_tokens": 100,
    "top_p": 0.1,
    "top_k": 1
  },
  "created": 123,
  "updated": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
description
string
required
id
string | null
provider
string | null

Provider of the application

Example:

"OpenAI"

model
string | null

Model of the application

Example:

"gpt-4o"

parameters
object | null

Parameters of the application

created
integer | null
updated
integer | null

Response

200
application/json
Successful Response
name
string
required
description
string
required
id
string | null
provider
string | null

Provider of the application

Example:

"OpenAI"

model
string | null

Model of the application

Example:

"gpt-4o"

parameters
object | null

Parameters of the application

created
integer | null
updated
integer | null