Skip to main content
GET
/
templates
/
{id}
/
schema
Get Template Variable Schema
curl --request GET \
  --url https://senderr.dev/api/v1/templates/{id}/schema \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "schema": {
    "required": [
      "name",
      "email"
    ],
    "optional": [
      "company"
    ],
    "properties": {
      "name": {
        "type": "string",
        "description": "User's full name"
      },
      "email": {
        "type": "string",
        "description": "User's email address"
      },
      "company": {
        "type": "string",
        "description": "User's company name",
        "default": "there"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Use your API key from the dashboard. Format: Bearer your-api-key-here

Path Parameters

id
string<uuid>
required

Template ID

Response

Template schema retrieved successfully

success
boolean
Example:

true

schema
object