---
title: "AI Login Authentication using User ID"
method: POST
path: "/api/jwt-token-generate"
tags: ["AI"]
---

# AI Login Authentication using User ID

`POST /api/jwt-token-generate`

Generate JWT token using only the user's ID.

## Request body

- object
  - `user_id` integer, required

## Response `200`

Successful login

- object
  - `access_token` string
  - `token_type` string
  - `expires_in` integer
  - `has_ai_acces` boolean
  - `app_url` string

## Other responses

- `401` — Unauthorized - Invalid credentials
- `404` — User not found
- `422` — Validation error

---

[API](https://skmtc.net/skillspark/apis/zapier-api-documentation.md) · [All operations](https://skmtc.net/skillspark/apis/zapier-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skillspark/zapier-api-documentation/versions/9502a693bd5d/schema)
