Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Action

List targets

List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination.

Required permission:

  • action.target.read
POST
/v2/actions/targets/search

Request Body

application/json
  1. body
pagination?|

List limitations and ordering.

sortingColumn?|

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.

filters?array<|>

Define the criteria to query for.

Response Body

Success

application/json
  1. response
pagination?
targets?array<||>

List of all targets matching the query.

Example Request
curl -X POST 'https://example.com/v2/actions/targets/search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "pagination": {    "totalResult": 0,    "appliedLimit": 0  },  "targets": [    {      "id": "string",      "creationDate": "2023-01-15T01:30:15.01Z",      "changeDate": "2023-01-15T01:30:15.01Z",      "name": "string",      "timeout": "string",      "endpoint": "string",      "signingKey": "string",      "payloadType": "PAYLOAD_TYPE_UNSPECIFIED",      "restAsync": {}    }  ]}

Was this page helpful?