Search Actions
POSThttps://$CUSTOM-DOMAIN/management/v1/actions/_search
Returns a list of actions matching the query. Actions are custom code written in javascript, that can be run at a specified point/flow/trigger in ZITADEL.
Request​
Header Parameters
The default is always the organization of the requesting user. If you like to get users of another organization include the header. Make sure the user has permission to access the requested data.
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
query
object
Possible values: [ACTION_FIELD_NAME_UNSPECIFIED
, ACTION_FIELD_NAME_NAME
, ACTION_FIELD_NAME_ID
, ACTION_FIELD_NAME_STATE
]
Default value: ACTION_FIELD_NAME_UNSPECIFIED
queries
object[]
Body
required
query
object
Possible values: [ACTION_FIELD_NAME_UNSPECIFIED
, ACTION_FIELD_NAME_NAME
, ACTION_FIELD_NAME_ID
, ACTION_FIELD_NAME_STATE
]
Default value: ACTION_FIELD_NAME_UNSPECIFIED
queries
object[]
Body
required
query
object
Possible values: [ACTION_FIELD_NAME_UNSPECIFIED
, ACTION_FIELD_NAME_NAME
, ACTION_FIELD_NAME_ID
, ACTION_FIELD_NAME_STATE
]
Default value: ACTION_FIELD_NAME_UNSPECIFIED
queries
object[]
Responses​
- 200
- default
A successful response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
Possible values: [ACTION_FIELD_NAME_UNSPECIFIED
, ACTION_FIELD_NAME_NAME
, ACTION_FIELD_NAME_ID
, ACTION_FIELD_NAME_STATE
]
Default value: ACTION_FIELD_NAME_UNSPECIFIED
result
object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"viewTimestamp": "2025-03-21T10:51:33.242Z"
},
"sortingColumn": "ACTION_FIELD_NAME_UNSPECIFIED",
"result": [
{
"id": "69629023906488334",
"details": {
"sequence": "2",
"creationDate": "2025-03-21T10:51:33.242Z",
"changeDate": "2025-03-21T10:51:33.242Z",
"resourceOwner": "69629023906488334"
},
"state": "ACTION_STATE_UNSPECIFIED",
"name": "log context",
"script": "function log(context, calls){console.log(context)}",
"timeout": "string",
"allowedToFail": true
}
]
}
- Schema
- Example (from schema)
Schema
details
object
Possible values: [ACTION_FIELD_NAME_UNSPECIFIED
, ACTION_FIELD_NAME_NAME
, ACTION_FIELD_NAME_ID
, ACTION_FIELD_NAME_STATE
]
Default value: ACTION_FIELD_NAME_UNSPECIFIED
result
object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"viewTimestamp": "2025-03-21T10:51:33.243Z"
},
"sortingColumn": "ACTION_FIELD_NAME_UNSPECIFIED",
"result": [
{
"id": "69629023906488334",
"details": {
"sequence": "2",
"creationDate": "2025-03-21T10:51:33.243Z",
"changeDate": "2025-03-21T10:51:33.243Z",
"resourceOwner": "69629023906488334"
},
"state": "ACTION_STATE_UNSPECIFIED",
"name": "log context",
"script": "function log(context, calls){console.log(context)}",
"timeout": "string",
"allowedToFail": true
}
]
}
- Schema
- Example (from schema)
Schema
details
object
Possible values: [ACTION_FIELD_NAME_UNSPECIFIED
, ACTION_FIELD_NAME_NAME
, ACTION_FIELD_NAME_ID
, ACTION_FIELD_NAME_STATE
]
Default value: ACTION_FIELD_NAME_UNSPECIFIED
result
object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"viewTimestamp": "2025-03-21T10:51:33.243Z"
},
"sortingColumn": "ACTION_FIELD_NAME_UNSPECIFIED",
"result": [
{
"id": "69629023906488334",
"details": {
"sequence": "2",
"creationDate": "2025-03-21T10:51:33.243Z",
"changeDate": "2025-03-21T10:51:33.243Z",
"resourceOwner": "69629023906488334"
},
"state": "ACTION_STATE_UNSPECIFIED",
"name": "log context",
"script": "function log(context, calls){console.log(context)}",
"timeout": "string",
"allowedToFail": true
}
]
}
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/management/v1/actions/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"sortingColumn": "ACTION_FIELD_NAME_UNSPECIFIED",
"queries": [
{
"actionIdQuery": {
"id": "69629023906488334"
},
"actionNameQuery": {
"name": "log",
"method": "TEXT_QUERY_METHOD_EQUALS"
},
"actionStateQuery": {
"state": "ACTION_STATE_UNSPECIFIED"
}
}
]
}'