Back to APIs
Clerk
Complete user management with pre-built UI components, session handling, MFA, social login, and organization support.
Base URL
https://api.clerk.com/v1userssessionsMFAorganizationssocial login
Endpoints
GET
/usersList all users in your Clerk application.
const response = await fetch("https://api.clerk.com/v1/users?limit=10", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
console.log(data);Response Preview
[
{
"id": "user_2abc123",
"email_addresses": [{ "email_address": "jane@example.com" }],
"first_name": "Jane",
"last_name": "Doe",
"created_at": 1714000000000,
"last_sign_in_at": 1714050000000
}
]POST
/usersCreate a new user programmatically.
const response = await fetch("https://api.clerk.com/v1/users", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
body: JSON.stringify({
"email_address": [
"jane@example.com"
],
"password": "securepassword",
"first_name": "Jane"
})
});
const data = await response.json();
console.log(data);Response Preview
{
"id": "user_2xyz789",
"email_addresses": [{ "email_address": "jane@example.com", "verification": { "status": "verified" } }],
"first_name": "Jane",
"created_at": 1714000000000
}