Download OpenAPI specification:
The API for the LitMat app. Some things to keep in mind:
For ease of documentation, many of the request bodies will have an id field that is generated by the API. You should not send this. However, in an effort to try to keep the YAML models simple, the same request/response model is generally used. Similarly, things like createdOn, lastLoginOn, and submittedOn are set by the API.
Submit a request for support, such as from the landing page or in-app.
| id | integer The autogenerated id returned in the response |
| userId | integer Should be sent if known |
string Should be sent if known. Some cases may simply be anonymous reports. | |
| subject | string The subject of the request |
| body | string The main message of the report |
| submittedOn | string <date-time> When the request was submitted |
| browser | string If using a browser, specify which one. It is fine to send "ios" or "android" if native; this is a freetext field. |
| category | string The category of the request |
| status | string Enum: "submitted" "closed" Set by the server |
{- "id": 0,
- "userId": 0,
- "email": "string",
- "subject": "string",
- "body": "string",
- "submittedOn": "2019-08-24T14:15:22Z",
- "browser": "string",
- "category": "string",
- "status": "submitted"
}{- "data": {
- "id": 0,
- "userId": 0,
- "email": "string",
- "subject": "string",
- "body": "string",
- "submittedOn": "2019-08-24T14:15:22Z",
- "browser": "string",
- "category": "string",
- "status": "submitted"
}
}Register a new account.
| firstName | string |
| lastName | string |
string <email> | |
| username | string |
| password | string <password> |
| dateOfBirth | string <date> |
{- "firstName": "string",
- "lastName": "string",
- "email": "user@example.com",
- "username": "string",
- "password": "pa$$word",
- "dateOfBirth": "2019-08-24"
}{- "data": {
- "status": "created"
}
}Verify a new account.
| token | string |
string <email> |
{- "token": "string",
- "email": "user@example.com"
}{- "data": {
- "verified": true,
- "id": 0
}
}Attempt to log in a user. If they have MFA, the response will be a 202 with the MFA required response.
string <email> | |
| username | string |
| password | string <password> |
| code | string The MFA code if required |
{- "email": "user@example.com",
- "username": "string",
- "password": "pa$$word",
- "code": "string"
}{- "data": {
- "id": 0,
- "firstName": "string",
- "lastName": "string",
- "email": "user@example.com",
- "username": "string",
- "status": "active",
- "createdOn": "2019-08-24T14:15:22Z",
- "lastLoginOn": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "systemRole": "user",
- "pronouns": "string",
- "stripeCustomerId": "string",
- "subscription": "free"
}
}Begin the process of resetting a user's password
string <email> |
{- "email": "user@example.com"
}{- "data": {
- "status": "string"
}
}Verify a token to continue resetting a password
string <email> | |
| token | string |
| password | string <password> |
{- "email": "user@example.com",
- "token": "string",
- "password": "pa$$word"
}{- "data": {
- "status": "string"
}
}Attempt to refresh an access token. By default it will look for the cookie sent during login, but if mobile, you will likely need to use the request body.
| refresh | string The refresh token received during login |
{- "refresh": "string"
}{- "data": {
- "id": 0,
- "firstName": "string",
- "lastName": "string",
- "email": "user@example.com",
- "username": "string",
- "status": "active",
- "createdOn": "2019-08-24T14:15:22Z",
- "lastLoginOn": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "systemRole": "user",
- "pronouns": "string",
- "stripeCustomerId": "string",
- "subscription": "free"
}
}View MFA settings; Note that is the user has not set up MFA, this may return an error instead
{- "data": {
- "userId": 0,
- "appStatus": "enabled",
- "smsStatus": "enabled",
- "smsNumber": "string",
- "emailStatus": "enabled",
- "preferred": "none"
}
}Verify MFA Enrollment
| method | string Value: "app" The MFA method being verified; currently only supports app |
| code | string The MFA code from the authenticator app, SMS, or email (depending on the MFA method) |
{- "method": "app",
- "code": "string"
}{- "data": {
- "enabled": true,
- "recoveryCodes": [
- "string"
]
}
}Register a new account.
| firstName | string |
| lastName | string |
string <email> | |
| username | string |
| password | string <password> |
| dateOfBirth | string <date> |
{- "firstName": "string",
- "lastName": "string",
- "email": "user@example.com",
- "username": "string",
- "password": "pa$$word",
- "dateOfBirth": "2019-08-24"
}{- "data": {
- "status": "created"
}
}Verify a new account.
| token | string |
string <email> |
{- "token": "string",
- "email": "user@example.com"
}{- "data": {
- "verified": true,
- "id": 0
}
}Attempt to log in a user. If they have MFA, the response will be a 202 with the MFA required response.
string <email> | |
| username | string |
| password | string <password> |
| code | string The MFA code if required |
{- "email": "user@example.com",
- "username": "string",
- "password": "pa$$word",
- "code": "string"
}{- "data": {
- "id": 0,
- "firstName": "string",
- "lastName": "string",
- "email": "user@example.com",
- "username": "string",
- "status": "active",
- "createdOn": "2019-08-24T14:15:22Z",
- "lastLoginOn": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "systemRole": "user",
- "pronouns": "string",
- "stripeCustomerId": "string",
- "subscription": "free"
}
}Begin the process of resetting a user's password
string <email> |
{- "email": "user@example.com"
}{- "data": {
- "status": "string"
}
}Verify a token to continue resetting a password
string <email> | |
| token | string |
| password | string <password> |
{- "email": "user@example.com",
- "token": "string",
- "password": "pa$$word"
}{- "data": {
- "status": "string"
}
}Attempt to refresh an access token. By default it will look for the cookie sent during login, but if mobile, you will likely need to use the request body.
| refresh | string The refresh token received during login |
{- "refresh": "string"
}{- "data": {
- "id": 0,
- "firstName": "string",
- "lastName": "string",
- "email": "user@example.com",
- "username": "string",
- "status": "active",
- "createdOn": "2019-08-24T14:15:22Z",
- "lastLoginOn": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "systemRole": "user",
- "pronouns": "string",
- "stripeCustomerId": "string",
- "subscription": "free"
}
}View MFA settings; Note that is the user has not set up MFA, this may return an error instead
{- "data": {
- "userId": 0,
- "appStatus": "enabled",
- "smsStatus": "enabled",
- "smsNumber": "string",
- "emailStatus": "enabled",
- "preferred": "none"
}
}Verify MFA Enrollment
| method | string Value: "app" The MFA method being verified; currently only supports app |
| code | string The MFA code from the authenticator app, SMS, or email (depending on the MFA method) |
{- "method": "app",
- "code": "string"
}{- "data": {
- "enabled": true,
- "recoveryCodes": [
- "string"
]
}
}View MFA settings; Note that is the user has not set up MFA, this may return an error instead
{- "data": {
- "userId": 0,
- "appStatus": "enabled",
- "smsStatus": "enabled",
- "smsNumber": "string",
- "emailStatus": "enabled",
- "preferred": "none"
}
}Verify MFA Enrollment
| method | string Value: "app" The MFA method being verified; currently only supports app |
| code | string The MFA code from the authenticator app, SMS, or email (depending on the MFA method) |
{- "method": "app",
- "code": "string"
}{- "data": {
- "enabled": true,
- "recoveryCodes": [
- "string"
]
}
}