---
title: "Get runtime principal"
url: https://hexelstudio.com/docs/api/titan/registry/get-runtime-principal
---

# Get runtime principal

**GET** `/titan/registry/runtime-principals/{id}`

## Path parameters

- `id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

## Returns

`200` Success (`RegistryRuntimePrincipal`)

- `agent_id: string`

- `agent_revision_id: string`

- `created_at: string`

- `created_by: string`

- `deployment_id: string`

- `display_name: string`

- `organization_id: string`

- `principal_kind: string`

- `runtime_principal_id: string`

- `state: string`

- `updated_at: string`

- `valid_from: string`

- `valid_tokens_not_before: string`

- `valid_until: optional string`

## Errors

- `400` Invalid request
- `401` Unauthenticated
- `403` Forbidden
- `404` Not found
- `409` Conflict
- `500` Internal error

## Example

```bash
curl --request GET \
  --url 'https://api.hexelstudio.com/v1/titan/registry/runtime-principals/{id}' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (200)

```json
{
  "agent_id": "string",
  "agent_revision_id": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "created_by": "string",
  "deployment_id": "string",
  "display_name": "string",
  "organization_id": "string",
  "principal_kind": "string",
  "runtime_principal_id": "string",
  "state": "string",
  "updated_at": "2026-01-01T00:00:00Z",
  "valid_from": "2026-01-01T00:00:00Z",
  "valid_tokens_not_before": "2026-01-01T00:00:00Z",
  "valid_until": "2026-01-01T00:00:00Z"
}
```

### Response (400)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (401)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (403)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (404)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (409)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (500)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
