Create a target
POSThttps://$CUSTOM-DOMAIN/resources/v3alpha/actions/targets
Create a new target, which can be used in executions.
Request​
Query Parameters
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
Possible values: non-empty
and <= 1000 characters
restWebhook
object
restCall
object
Call is executed in parallel to others, ZITADEL does not wait until the call is finished. The state is ignored, call is sent as post.
if the target doesn't respond before this timeout expires, the the connection is closed and the action fails
Possible values: non-empty
and <= 1000 characters
Body
required
Possible values: non-empty
and <= 1000 characters
restWebhook
object
restCall
object
Call is executed in parallel to others, ZITADEL does not wait until the call is finished. The state is ignored, call is sent as post.
if the target doesn't respond before this timeout expires, the the connection is closed and the action fails
Possible values: non-empty
and <= 1000 characters
Body
required
Possible values: non-empty
and <= 1000 characters
restWebhook
object
restCall
object
Call is executed in parallel to others, ZITADEL does not wait until the call is finished. The state is ignored, call is sent as post.
if the target doesn't respond before this timeout expires, the the connection is closed and the action fails
Possible values: non-empty
and <= 1000 characters
Responses​
- 200
- 201
- 403
- 404
- default
A successful response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
Key used to sign and check payload sent to the target.
{
"details": {
"id": "69629012906488334",
"created": "2025-03-21T10:51:28.372Z",
"changed": "2025-03-21T10:51:28.372Z",
"owner": "69629023906488334"
},
"signingKey": "98KmsU67"
}
- Schema
- Example (from schema)
Schema
details
object
Key used to sign and check payload sent to the target.
{
"details": {
"id": "69629012906488334",
"created": "2025-03-21T10:51:28.372Z",
"changed": "2025-03-21T10:51:28.372Z",
"owner": "69629023906488334"
},
"signingKey": "98KmsU67"
}
- Schema
- Example (from schema)
Schema
details
object
Key used to sign and check payload sent to the target.
{
"details": {
"id": "69629012906488334",
"created": "2025-03-21T10:51:28.373Z",
"changed": "2025-03-21T10:51:28.373Z",
"owner": "69629023906488334"
},
"signingKey": "98KmsU67"
}
Target successfully created
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
Key used to sign and check payload sent to the target.
{
"details": {
"id": "69629012906488334",
"created": "2025-03-21T10:51:28.373Z",
"changed": "2025-03-21T10:51:28.373Z",
"owner": "69629023906488334"
},
"signingKey": "98KmsU67"
}
- Schema
- Example (from schema)
Schema
details
object
Key used to sign and check payload sent to the target.
{
"details": {
"id": "69629012906488334",
"created": "2025-03-21T10:51:28.374Z",
"changed": "2025-03-21T10:51:28.374Z",
"owner": "69629023906488334"
},
"signingKey": "98KmsU67"
}
- Schema
- Example (from schema)
Schema
details
object
Key used to sign and check payload sent to the target.
{
"details": {
"id": "69629012906488334",
"created": "2025-03-21T10:51:28.374Z",
"changed": "2025-03-21T10:51:28.374Z",
"owner": "69629023906488334"
},
"signingKey": "98KmsU67"
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://$CUSTOM-DOMAIN/resources/v3alpha/actions/targets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check"
}'