Users
Get a user
Retrieve a user by name.
AuthorizationBearer <token>
In: header
Path Parameters
nameName
The name of the user to get.
Response Body
from wriftai import Clientwriftai = Client()user = wriftai.users.get("jane-doe")print(user.name){
"urls": [
"https://twitter.com/wriftai",
"https://linkedin.com/company/wriftai",
"https://github.com/wriftai"
],
"account_id": "8f2b1e4a-9c3d-4f6e-b1a2-7d8e9f0a1b2c",
"name": "jane-doe",
"avatar_url": "https://wrift.ai/avatars/jane-doe.png",
"display_name": "Jane Doe",
"bio": "Building ML models for text-to-speech.",
"location": "San Francisco, CA",
"company": "WriftAI",
"created_at": "2024-06-12T14:22:31Z",
"updated_at": "2024-06-12T14:22:47Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create an upload POST
This endpoint creates an upload. To complete an upload, split the file into parts, upload each part to the corresponding upload URL using a PUT request, record the ETag if returned in the response header for each uploaded part, and then complete the upload by submitting the etags to the upload completion endpoint.
List users GET
Retrieves a paginated list of users. By default the users are returned in the order that they joined WriftAI.