User
Schema Properties
Section titled “Schema Properties”id string Required
The unique identifier for the user.
email string Required
The primary email address of the user.
role enum Required
The access level granted to the user.
createdAt string Required
ISO 8601 timestamp of when the user was created.
metadata object Optional
Optional metadata associated with the user profile.
View Properties
lastLogin string Optional
Timestamp of the last successful login.
preferences Record<string, string> Optional
Arbitrary key-value pairs for user preferences.
SDK Code Samples
Section titled “SDK Code Samples”Copy these snippets to integrate the User API into your application.
curl -X POST "https://api.cloudstart.dev/v1/users" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{"id":"...","email":"...","role":"...","createdAt":"...","metadata":"..."}'const options = { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' }, body: JSON.stringify({ "id": "...", "email": "...", "role": "...", "createdAt": "...", "metadata": "..." })};
fetch('https://api.cloudstart.dev/v1/users', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));import requests
url = "https://api.cloudstart.dev/v1/users"
headers = { "Content-Type": "application/json", "Authorization": "Bearer YOUR_API_KEY"}
payload = { "id": "...", "email": "...", "role": "...", "createdAt": "...", "metadata": "..."}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text)Interactive Testing
Section titled “Interactive Testing”Use the playground below to simulate creating a new User object. This executes a live fetch request directly from your browser.
POST
https://api.cloudstart.dev/v1/usersBearer Token
Body (JSON)