- apps
- app-jobs
- templates
- reference
- projects
- webhooks
- app-results
- userInfo
Creates a webhook
POST
https://api.promptmate.io/v1/webhooks
webhooks
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 webhook.
webhookName
string
optional
restrictedAppIds
array[string]
optional
webhookType
enum<string>
optional
Allowed values:
jobrow
endpointUrl
string
optional
webhookReference
string
optional
Example
{
"webhookName": "string",
"restrictedAppIds": [
"string"
],
"webhookType": "job",
"endpointUrl": "string",
"webhookReference": "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/webhooks' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw ''
Responses
🟢200OK
application/json
Body
array of:
webhookId
string
optional
webhookName
string
optional
restrictedAppIds
array[string]
optional
webhookType
enum<string>
optional
Allowed values:
jobrow
endpointUrl
string
optional
webhookReference
string
optional
Example
[
{
"webhookId": "string",
"webhookName": "string",
"restrictedAppIds": [
"string"
],
"webhookType": "job",
"endpointUrl": "string",
"webhookReference": "string"
}
]
🔴500Server Error
Modified at 2025-04-17 08:09:16