ai

Embed
Preview of the card
<a href="https://hermeticor.com/docs/ref-ai"><img src="https://hermeticor.com/docs/_api/public/orgs/5fcd8b3c-a27c-4688-972f-de710125592f/spaces/caf5dc05-15f7-4e0c-bdb8-ab29ede6211e/pages/98a6220a-4faf-4bff-85cf-4938b3b52dbc/social-card.svg?v=3e7ae33eec8b" alt="ai" width="600" height="315"></a>
GEThttps://hermeticor.com/v1/ai/prompt-templates

Parameters

resourceRefstringquery
limitintegerquery
Page size; omitted returns the whole list
cursorstringquery
Opaque: the nextCursor of the previous page

Code samples

cURL
curl -X GET "https://hermeticor.com/v1/ai/prompt-templates" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response
Example
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "prompt": "string",
      "resourceRef": "string",
      "createdAt": "2024-01-01T00:00:00Z"
    }
  ],
  "nextCursor": "string"
}
Schema
itemsItemsItem158[]required
Show child parameters
idstringrequired
namestringrequired
promptstringrequired
resourceRefstringrequired
createdAtstringrequired
nextCursorstringrequired
4XX Default Response
Example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}
Schema
errorobjectrequired
Show child parameters
codestringrequired
messagestringrequired
detailsobject
5XX Default Response

Same as 4XX · GET /v1/ai/prompt-templates

POSThttps://hermeticor.com/v1/ai/prompt-templates

Request body

application/json
namestringrequired
promptstringrequired
resourceRefstring
{
  "name": "string",
  "prompt": "string",
  "resourceRef": "string"
}

Code samples

cURL
curl -X POST "https://hermeticor.com/v1/ai/prompt-templates" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","prompt":"string","resourceRef":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Default Response
Example
{
  "id": "string",
  "name": "string",
  "prompt": "string",
  "resourceRef": "string",
  "createdAt": "2024-01-01T00:00:00Z"
}
Schema
idstringrequired
namestringrequired
promptstringrequired
resourceRefstringrequired
createdAtstringrequired
4XX Default Response

Same as 4XX · GET /v1/ai/prompt-templates

5XX Default Response

Same as 4XX · GET /v1/ai/prompt-templates

PUThttps://hermeticor.com/v1/ai/prompt-templates/{id}

Parameters

idstringpathrequired

Request body

application/json
namestringrequired
promptstringrequired
resourceRefstring
{
  "name": "string",
  "prompt": "string",
  "resourceRef": "string"
}

Code samples

cURL
curl -X PUT "https://hermeticor.com/v1/ai/prompt-templates/{id}" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","prompt":"string","resourceRef":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response

Same as 201 · POST /v1/ai/prompt-templates

4XX Default Response

Same as 4XX · GET /v1/ai/prompt-templates

5XX Default Response

Same as 4XX · GET /v1/ai/prompt-templates

DELETEhttps://hermeticor.com/v1/ai/prompt-templates/{id}

Parameters

idstringpathrequired

Code samples

cURL
curl -X DELETE "https://hermeticor.com/v1/ai/prompt-templates/{id}" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response
Example
{
  "ok": true
}
Schema
okbooleanrequired
true
4XX Default Response

Same as 4XX · GET /v1/ai/prompt-templates

5XX Default Response

Same as 4XX · GET /v1/ai/prompt-templates

Updated