---
title: "Get the runtime environment key for a job"
method: GET
path: "/api/v4/jobs/{id}/runtime_environment_key"
tags: ["jobs"]
---

# Get the runtime environment key for a job

`GET /api/v4/jobs/{id}/runtime_environment_key`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/jobs/{id}/runtime_environment_key`
- Auth: none declared

Retrieves the runtime environment key linked to a job, if the job is resuming a suspended environment.

## Path parameters

- `id` integer, required

## Query parameters

- `token` string

## Response `200`

Get the runtime environment key for a job

- APIEntitiesCiRuntimeEnvironmentKey: API_Entities_Ci_RuntimeEnvironmentKey model
  - `runtime_environment_key` string, required

## Other responses

- `403`: Forbidden
- `404`: Not found
- `429`: Too Many Requests

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
