Users

Get Users

GET/api/v1/legacy/users
Response

Successful Response

Body
name*Name
email*Email
id*Id
lastLoginLastlogin
dateJoined*Datejoined
status*UserLegacyStatus

An enumeration.

123
Request
const response = await fetch('/api/v1/legacy/users', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "name": "text",
    "email": "text",
    "lastLogin": "2024-09-08T00:29:58.671Z",
    "dateJoined": "2024-09-08T00:29:58.671Z",
    "status": 1
  }
]

Create And Invite User

POST/api/v1/legacy/users/invite
Body
name*Name
email*Email
Response

Successful Response

Body
name*Name
email*Email
id*Id
lastLoginLastlogin
dateJoined*Datejoined
status*UserLegacyStatus

An enumeration.

123
Request
const response = await fetch('/api/v1/legacy/users/invite', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "name": "text",
      "email": "text"
    }),
});
const data = await response.json();
Response
{
  "name": "text",
  "email": "text",
  "lastLogin": "2024-09-08T00:29:58.671Z",
  "dateJoined": "2024-09-08T00:29:58.671Z",
  "status": 1
}

Delete User

DELETE/api/v1/legacy/users/{id_}
Path parameters
id_*Id
Response

Successful Response

Request
const response = await fetch('/api/v1/legacy/users/{id_}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Get Long Lived Token

GET/api/v1/legacy/users/token
Response

Successful Response

Body
token*Token
Request
const response = await fetch('/api/v1/legacy/users/token', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "token": "text"
}

Last updated