Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Instance

Get Instance

Returns the instance in the current context or by its ID. By default the instance will be determined by the context of the request, e.g. the host header. You can optionally pass an InstanceID to retrieve a specific instance. This requires additional permissions.

Required permissions:

  • iam.read
  • system.instance.read (if InstanceID is set)
POST
/zitadel.instance.v2.InstanceService/GetInstance

Header Parameters

Connect-Protocol-Version*1

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?Connect-Timeout-Ms

Define the timeout, in ms

Request Body

application/json
  1. body
instanceId?instance_id

InstanceID is the unique ID of the instance to be retrieved. If not set, the instance in the current context (e.g. identified by the host header) will be returned. If an ID is set, the caller must have additional permissions.

Response Body

Success

application/json
  1. response
instance?

The instance matching the instance ID

Example Request
curl -X POST 'https://example.com/zitadel.instance.v2.InstanceService/GetInstance' \  -H 'Connect-Protocol-Version: 1' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "instance": {    "id": "string",    "changeDate": "2023-01-15T01:30:15.01Z",    "creationDate": "2023-01-15T01:30:15.01Z",    "state": "STATE_UNSPECIFIED",    "name": "string",    "version": "string",    "customDomains": [      {        "instanceId": "string",        "creationDate": "2023-01-15T01:30:15.01Z",        "domain": "string",        "primary": true,        "generated": true      }    ]  }}

Was this page helpful?