Get the details for automatic authentication on third-party clients
1. Fetch this endpoint (res)
2. Send a direct message to `res.account` containing the content of `res.message_template` (replacing the placeholder(s))
3. Wait for a direct message originating from `res.account` and open the link that gets sent (the message won't contain just the link, the message may contain other text)
responses:
'200':
description:Successful
content:
application/json:
schema:
type:object
required:
-method
-account
-message_template
properties:
method:
type:string
enum:
-dm
account:
type:string
example:grant@toast.ooo
description:The account handle the message will be sent to
message_template:
type:string
example:|
I am requesting a login code
EXAMPLE-CODE
Sent by {software}
description:|
The message that should be sent to the account
* `{software}` should be replaced with your software's name
'404':
x-summary:Not available
description:Automated authentication is not supported
content:
application/json:
schema:
type:object
required:
-error
properties:
error:
type:string
/events:
get:
operationId:get-all-events
summary:Get all events
tags:
-events
parameters:
-in:query
name:from
schema:
type:string
format:date
default:today
description:|
Only include events whose end date is after this date (ISO-8601)
-in:query
name:to
schema:
type:string
format:date
default:today + 1 month
description:|
Only include events whose end date is before this date (ISO-8601)