Create user
POSThttps://api.teyuto.tv/v2/users
Endpoint to create a new user (registration)
Request
Header Parameters
Content-Type stringrequired
Example: application/x-www-form-urlencoded
Accept stringrequired
Example: application/json
- application/x-www-form-urlencoded
Body
email stringrequired
Email of user to create
Example:
jackblack12@teyuto.tv
password stringrequired
Password to set for user
Example:
fD423Oflko02OpodfW
client_user_id stringrequired
Client user id (useful for external integrations)
Example:
string_custom
Responses
- 200
- 400
- 401
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
id stringrequired
auth_token stringrequired
{
"status": "string",
"id": "string",
"auth_token": "string"
}
OK
{
"status": "<string>",
"id": "<string>",
"auth_token": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 2
Schema
status stringrequired
{
"status": "string"
}
Bad Request
{
"status": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 3
Schema
status stringrequired
{
"status": "string"
}
Unauthorized
{
"status": "<string>"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.teyuto.tv/v2/users");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "<API_KEY_VALUE>");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/x-www-form-urlencoded");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear