- apps
- app-jobs
- templates
- reference
- projects
- webhooks
- app-results
- userInfo
Create a new app job
POST
https://api.promptmate.io/v1/app-jobs
app-jobs
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
Represents a request to create a new job for an app.
appId
string
optional
callBackUrl
string
optional
noMailOnFinish
boolean
optional
Default:
true
config
object
optional
language
string
optional
country
string
optional
data
array[object (DataObject) {1}]
optional
Additional properties
string
optional
Example
{
"appId": "string",
"callBackUrl": "string",
"noMailOnFinish": true,
"config": {
"language": "string",
"country": "string"
},
"data": [
{
"property1": "string",
"property2": "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/app-jobs' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"appId": "string",
"callBackUrl": "string",
"noMailOnFinish": true,
"config": {
"language": "string",
"country": "string"
},
"data": [
{
"property1": "string",
"property2": "string"
}
]
}'
Responses
🟢201Created
application/json
Body
jobId
string
optional
jobStatus
enum<string>
optional
Allowed values:
queuederror
Example
{
"jobId": "string",
"jobStatus": "queued"
}
🟠400Bad Request
🔴500Server Error