---
title: "User ID to Username"
method: GET
path: "/id-to-username/{user_id}"
tags: ["Technical Endpoints"]
---

# User ID to Username

`GET /id-to-username/{user_id}`

## Request

- Base URL: `https://api.sorsa.io/v3`
- URL: `https://api.sorsa.io/v3/id-to-username/{user_id}`
- Auth: API key in header `ApiKey`
- TypeScript: <https://skmtc.dev/sorsa/apis/api-sorsa-io-2/docs/id-to-username/:user_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the current Twitter/X username for a given user ID. You provide the user ID, and the endpoint returns the corresponding username.

Use cases:

Developers converting stored user IDs back into readable usernames; SaaS platforms displaying handles in dashboards while keeping IDs internally; analytics tools resolving IDs when exporting reports; automation systems syncing internal records with current usernames; CRM systems updating handles if a user has changed their username.

## Path parameters

- `user_id` string, required

## Response `200`

OK

- TechnicalHandleRes
  - `handle` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/sorsa/apis/api-sorsa-io-2.md) - [All operations](https://skmtc.dev/sorsa/apis/api-sorsa-io-2/llms.txt) - [OpenAPI document](https://skmtc.dev/sorsa/apis/api-sorsa-io-2/revisions/3d7215317ba1?raw)
