promptmate.io API
  1. templates
promptmate.io API
  • apps
    • Lists apps
      GET
    • Get app
      GET
  • app-jobs
    • Create a new app job
      POST
    • Get job status and result
      GET
  • templates
    • Lists templates
      GET
    • Use a specific template
      POST
  • reference
    • Lists available languages
      GET
    • Lists available countries
      GET
  • projects
    • Lists projects
      GET
  • webhooks
    • Lists webhooks
      GET
    • Creates a webhook
      POST
    • Deletes a webhook
      DELETE
  • app-results
    • Get last result rows of an app (e.g. as examples)
      GET
  • userInfo
    • get user information
      GET
  1. templates

Use a specific template

POST
https://api.promptmate.io/v1/templates/use
templates
Use a specific template by its ID. Rate limit is 500 requests per minute.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Header Params
x-api-key
string 
required
Example:
YOUR_API_KEY
User-Agent
string 
optional
Example:
promptmate.io
Body Params application/json
templateId
string 
optional
Example
{
    "templateId": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.promptmate.io/v1/templates/use' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "templateId": "string"
}'

Responses

🟢200OK
application/json
Template used successfully
Body
message
string 
optional
templateId
string 
optional
Unique identifier for the template which has been used.
appId
string 
optional
AppId for the app which has been created.
Example
{
    "message": "string",
    "templateId": "string",
    "appId": "string"
}
🟠404Record Not Found
🔴500Server Error
Previous
Lists templates
Next
Lists available languages
Built with