---
title: "GetDeployment returns runtime info and access token on behalf of a specific user, or alternatively for a raw set of JWT attributes"
method: POST
path: "/v1/deployments/{deploymentId}/credentials"
---

# GetDeployment returns runtime info and access token on behalf of a specific user, or alternatively for a raw set of JWT attributes

`POST /v1/deployments/{deploymentId}/credentials`

## Path parameters

- `deploymentId` string, required

## Request body

- object
  - `accessTokenTtlSeconds` integer
  - `attributes` object
  - `userEmail` string
  - `userId` string

## Response `200`

A successful response.

- V1GetDeploymentResponse
  - `accessToken` string
  - `instanceId` string
  - `runtimeHost` string
  - `ttlSeconds` integer

## Other responses

- `default` — An unexpected error response.

## Changes

- **2025-12-11** (v1) `f317ff96998d` — 2 warning
  - removed the request property `externalUserId`
  - removed the request property `superuserForceAccess`

[Change history](https://skmtc.dev/rilldata/apis/rill-admin-api/changes/v1/deployments/:deploymentId/credentials/post.md)

---

[API](https://skmtc.dev/rilldata/apis/rill-admin-api.md) · [All operations](https://skmtc.dev/rilldata/apis/rill-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rilldata/rill-admin-api/revisions/f317ff96998d/schema)
