For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocsAPI ReferenceSDKs
DocsAPI ReferenceSDKs
  • Overview
    • API reference
  • Mesh API
      • GETList Templates
      • POSTCreate Template
      • GETGet Template
      • PATCHUpdate Template
      • DELDelete Template
LogoLogo
Mesh APITemplates

List Templates

||View as Markdown|
GET
https://api.meshapi.ai/v1/templates
GET
/v1/templates
$curl https://api.meshapi.ai/v1/templates \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
200Retrieved
1[
2 {
3 "id": "tmpl_9f8b7c6d5e4a3b2c1d0e",
4 "name": "Customer Support Chat",
5 "owner": "user_1234567890abcdef",
6 "is_global": false,
7 "description": "Template for handling customer support conversations with polite and helpful responses.",
8 "system": "You are a helpful customer support assistant.",
9 "messages": [
10 {
11 "role": "system",
12 "content": "You are a helpful customer support assistant."
13 },
14 {
15 "role": "user",
16 "content": "Hello, I need help with my order."
17 }
18 ],
19 "model": "gpt-4-chat",
20 "params": {
21 "temperature": 0.7,
22 "max_tokens": 150
23 },
24 "variables": [
25 "customer_name",
26 "order_id"
27 ],
28 "created_at": "2024-05-10T09:15:00Z",
29 "updated_at": "2024-05-15T16:45:00Z"
30 }
31]
List all templates belonging to the authenticated user's owner.
Was this page helpful?
Previous

List Paid Models

Next

Create Template

Built with

Authentication

AuthorizationBearer

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

Response

Successful Response
idstring
namestring
ownerstring or null
is_globalboolean
descriptionstring or null
systemstring or null
messageslist of maps from strings to any or null
modelstring or null
paramsmap from strings to any or null
variableslist of strings or null
created_atstring
updated_atstring