---
title: "Log in and fetch an authentication token"
method: POST
path: "/auth/login"
tags: ["auth"]
---

# Log in and fetch an authentication token

`POST /auth/login`

This endpoint is unavailable on Cribl.Cloud. Instead, follow the instructions at https://docs.cribl.io/stream/api-tutorials/#criblcloud to get an Auth token for Cribl.Cloud.

## Request body

- LoginInfo
  - `password` string, required
  - `username` string, required

## Response `200`

Authentication token

- AuthToken
  - `forcePasswordChange` boolean, required
  - `token` string, required

## Other responses

- `401` — Authentication failed (missing or invalid credentials or Bearer token).
- `429` — Rate limit exceeded (check Retry-After header).
- `500` — Unexpected server error.

---

[API](https://skmtc.net/criblio/apis/cribl-api-reference.md) · [All operations](https://skmtc.net/criblio/apis/cribl-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/criblio/cribl-api-reference/versions/e9bef570d106/schema)
