---
title: "User login"
method: POST
path: "/auth/login"
tags: ["Authentication"]
---

# User login

`POST /auth/login`

Authenticate user and return access and refresh tokens

## Request body

- InternalPkgCatalogApiserverHandlersLoginReq
  - `password` string, required
  - `username` string, required

## Response `200`

Returns access_token, refresh_token, and token_type

- object

## Other responses

- `400` — Invalid payload
- `401` — Invalid credentials

---

[API](https://skmtc.dev/ibm/apis/ai-services-catalog-api.md) · [All operations](https://skmtc.dev/ibm/apis/ai-services-catalog-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ibm/ai-services-catalog-api/revisions/b6ffcee23f74/schema)
