Tabby

Templates

Using template placeholders for dynamic data generation

Templates

Tabby supports template placeholders that generate dynamic data for each request.

Available Placeholders

PlaceholderDescriptionExample Output
{{name}}Random full nameJohn Smith
{{firstName}}Random first nameJohn
{{lastName}}Random last nameSmith
{{email}}Random email addressjohn.smith@example.com
{{uuid}}Random UUID v4550e8400-e29b-41d4-a716-446655440000
{{phone}}Random phone number+1-555-123-4567
{{int}}Random integer42
{{float}}Random float3.14159
{{bool}}Random booleantrue
{{date}}Random date2024-01-15
{{timestamp}}Current timestamp1705312800

Inline Templates

Use placeholders directly in the request body:

tabby post https://api.example.com/users -b '{
  "name": "{{name}}",
  "email": "{{email}}",
  "id": "{{uuid}}"
}'

Template Files

Create a JSON file with placeholders:

user-template.json
{
  "user": {
    "name": "{{name}}",
    "email": "{{email}}",
    "phone": "{{phone}}"
  },
  "metadata": {
    "id": "{{uuid}}",
    "createdAt": "{{timestamp}}"
  }
}

Use the template file:

tabby post https://api.example.com/users -t user-template.json

Combined with Loop Mode

Generate 50 unique users:

tabby post https://api.example.com/users -t user-template.json -l 50

Each of the 50 requests will have completely different generated values.

On this page