{{ data.mode === 'create' ? 'Create New API' : data.mode === 'duplicate' ? 'Duplicate API' : 'Edit API' }}

Name* Use only letters, numbers, and underscores Name is required Invalid characters in name URL* URL is required Invalid URL format Method* {{ method }}
help_outline Template Variables
info Important:
Write all variables without quotes: {{ '{' }}{{ '{' }}variables.pnr{{ '}' }}{{ '}' }}
The system will automatically add quotes for string values during execution.

Examples:
{{ '{' }} "pnr": {{ '{' }}{{ '{' }}variables.pnr{{ '}' }}{{ '}' }} {{ '}' }}{{ '{' }} "pnr": "ABC123" {{ '}' }}
{{ '{' }} "count": {{ '{' }}{{ '{' }}variables.passenger_count{{ '}' }}{{ '}' }} {{ '}' }}{{ '{' }} "count": 2 {{ '}' }}
{{ '{' }} "active": {{ '{' }}{{ '{' }}variables.enabled{{ '}' }}{{ '}' }} {{ '}' }}{{ '{' }} "active": true {{ '}' }}
{{ templateVar }}
Timeout (seconds)* Timeout is required Minimum 1 second Maximum 300 seconds

Retry Settings

Retry Count* Backoff (seconds)* Strategy* Static Exponential
Response Prompt Use {{ '{' }}{{ '{' }}api_response{{ '}' }}{{ '}' }} to reference the API response

Response Mappings

Variable Name snake_case only Type {{ type }} JSON Path Use dot notation for nested values Caption Human-readable label
info

No response mappings defined. Use this to extract values from API responses into session variables.

Proxy URL (Optional)

Request Headers

Key Value
info

No headers defined. Click "Add Header" to create one.

help_outline Template Variables for Headers
{{ templateVar }}

Common headers:
Authorization: Bearer {{ '{' }}{{ '{' }}auth_tokens.api_name.token{{ '}' }}{{ '}' }}
Content-Type: application/json

Enable Authentication
Token Endpoint* Token endpoint is required when auth is enabled Response Token Path* JSON path to extract token from response (e.g., data.token) Token path is required when auth is enabled
help_outline Template Variables
{{ templateVar }}

Token Refresh (Optional)

Token Refresh Endpoint

Test API Configuration

Test your API with sample data before saving.

{{ form.get('method')?.value || 'POST' }} {{ form.get('url')?.value || 'No URL set' }}

Edit the JSON above to customize test values. Template variables are replaced with placeholder values.

Test Result:

{{ testResult.success ? 'check_circle' : 'error' }} {{ testResult.success ? 'Success' : 'Failed' }} Status: {{ testResult.status_code }} Time: {{ testResult.response_time_ms }}ms
error_outline {{ testResult.error }}
Response Headers:
{{ testResult.headers | json }}
Response Body:
{{ testResult.body }}
info

Note: Test requests use the JSON content from the text area above.