---
title: "Retrieve an authentication token"
method: GET
path: "/api/v4/projects/{id}/packages/conan/v2/users/authenticate"
tags: ["packages_conan"]
---

# Retrieve an authentication token

`GET /api/v4/projects/{id}/packages/conan/v2/users/authenticate`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/packages/conan/v2/users/authenticate`
- Auth: none declared

Retrieves an authentication token. Creates a JSON Web Token (JWT) for use as a Bearer header in other requests to the package registry.

## Path parameters

- `id` string, required

## Response `200`

Retrieve an authentication token

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[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)
