---
title: "Create user from Slack OAuth"
method: POST
path: "/api/v1/external/slack/oauth"
tags: ["External Integrations"]
---

# Create user from Slack OAuth

`POST /api/v1/external/slack/oauth`

Callback endpoint for Slack OAuth to create or update a user.

## Request body

- object
  - `token` string, required — Slack OAuth Token

## Response `200`

successful

- object
  - `user_id` integer
  - `username` string
  - `email` string, nullable

## Other responses

- `400` — bad request

## Changes

- **2026-01-27** (v1) `b6d6849481da` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hackclub/apis/hackatime-api/changes/api/v1/external/slack/oauth/post.md)

---

[API](https://skmtc.dev/hackclub/apis/hackatime-api.md) · [All operations](https://skmtc.dev/hackclub/apis/hackatime-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hackclub/hackatime-api/revisions/b6d6849481da/schema)
