Search targets
POSThttps://$CUSTOM-DOMAIN/resources/v3alpha/actions/targets/_search
Search all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination.
Request​
Query Parameters
Maximum amount of events returned. If not configured otherwise, the default is 100, the maximum is 1000. If the limit exceeds the maximum, ZITADEL throws an error.
default is ascending, because together with the creation date sorting column, this returns the most deterministic pagination results.
Possible values: [TARGET_FIELD_NAME_UNSPECIFIED
, TARGET_FIELD_NAME_ID
, TARGET_FIELD_NAME_CREATED_DATE
, TARGET_FIELD_NAME_CHANGED_DATE
, TARGET_FIELD_NAME_NAME
, TARGET_FIELD_NAME_TARGET_TYPE
, TARGET_FIELD_NAME_URL
, TARGET_FIELD_NAME_TIMEOUT
, TARGET_FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: TARGET_FIELD_NAME_UNSPECIFIED
The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
Define the criteria to query for.
Array [
]
targetNameFilter
object
inTargetIdsFilter
object
Body
required
Define the criteria to query for.
Array [
]
targetNameFilter
object
inTargetIdsFilter
object
Body
required
Define the criteria to query for.
Array [
]
targetNameFilter
object
inTargetIdsFilter
object
Responses​
- 200
- 400
- 403
- 404
- default
A list of all targets matching the query
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
result
object[]
{
"details": {
"appliedLimit": 100,
"totalResult": "2",
"timestamp": "2025-03-25T07:19:30.100Z"
},
"result": [
{
"details": {
"id": "69629012906488334",
"created": "2025-03-25T07:19:30.100Z",
"changed": "2025-03-25T07:19:30.100Z",
"owner": "69629023906488334"
},
"config": {
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check"
},
"signingKey": "98KmsU67"
}
]
}
- Schema
- Example (from schema)
Schema
details
object
result
object[]
{
"details": {
"appliedLimit": 100,
"totalResult": "2",
"timestamp": "2025-03-25T07:19:30.101Z"
},
"result": [
{
"details": {
"id": "69629012906488334",
"created": "2025-03-25T07:19:30.101Z",
"changed": "2025-03-25T07:19:30.101Z",
"owner": "69629023906488334"
},
"config": {
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check"
},
"signingKey": "98KmsU67"
}
]
}
- Schema
- Example (from schema)
Schema
details
object
result
object[]
{
"details": {
"appliedLimit": 100,
"totalResult": "2",
"timestamp": "2025-03-25T07:19:30.102Z"
},
"result": [
{
"details": {
"id": "69629012906488334",
"created": "2025-03-25T07:19:30.102Z",
"changed": "2025-03-25T07:19:30.102Z",
"owner": "69629023906488334"
},
"config": {
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check"
},
"signingKey": "98KmsU67"
}
]
}
invalid list query
- 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 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/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '[
{
"targetNameFilter": {
"targetName": "ip_allow_list",
"method": "TEXT_FILTER_METHOD_EQUALS"
},
"inTargetIdsFilter": {
"targetIds": [
"69629023906488334",
"69622366012355662"
]
}
}
]'