Gets the Account associated with the authenticated bearer token.
Returns the Account.
General error response from the platform
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "name": {
- "first": "string",
- "last": "string"
}, - "email": {
- "address": "string",
- "verified": true,
- "added": "2021-01-30T08:30:00Z"
}, - "two_factor_auth": {
- "verified": true
}, - "allow_support_login": true,
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "last_login": "2021-01-30T08:30:00Z"
}
}
}
Updates the Account.
Returns the updated Account.
General error response from the platform
{- "name": {
- "first": "string",
- "last": "string"
}, - "allow_support_login": true
}
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "name": {
- "first": "string",
- "last": "string"
}, - "email": {
- "address": "string",
- "verified": true,
- "added": "2021-01-30T08:30:00Z"
}, - "two_factor_auth": {
- "verified": true
}, - "allow_support_login": true,
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "last_login": "2021-01-30T08:30:00Z"
}
}
}
Puts the Account into a deleted
state. This will fail if the Account is the current OWNER
of an active Hub.
Returns a job descriptor with information about the status of the Account deletion.
General error response from the platform
{- "data": {
- "action": "string",
- "job": {
- "id": "string",
- "accepted": true,
- "queue": "string",
- "schedule": "2021-01-30T08:30:00Z",
- "parallel": {
- "sub_queue": "string",
- "tasks": true
}, - "tasks": [
- {
- "caption": "string",
- "header": "string",
- "steps": [
- {
- "caption": "string",
- "description": "string",
- "started": "2021-01-30T08:30:00Z",
- "completed": "2021-01-30T08:30:00Z"
}
], - "input": {
- "property1": null,
- "property2": null
}
}
]
}
}
}
Lists logins associated with a given account.
Returns a list of login records associated with this Account.
General error response from the platform
{- "data": [
- {
- "id": "651586fca6078e98982dbd90",
- "account": {
- "id": "651586fca6078e98982dbd90",
- "ip": "string"
}, - "time": "2021-01-30T08:30:00Z",
- "type": "employee",
- "success": true,
- "employee": {
- "id": "651586fca6078e98982dbd90",
- "ip": "string"
}
}
]
}
Change the password on the Account. Requires the current password of the Account to be submitted.
Returns an Account.
General error response from the platform
{- "current": "string",
- "new": "stringst"
}
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "name": {
- "first": "string",
- "last": "string"
}, - "email": {
- "address": "string",
- "verified": true,
- "added": "2021-01-30T08:30:00Z"
}, - "two_factor_auth": {
- "verified": true
}, - "allow_support_login": true,
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "last_login": "2021-01-30T08:30:00Z"
}
}
}
Initiate a password reset for the Account. A confirmation email will be sent to the email associated with the Account, and the token in the email must be passed in a second call to this endpoint.
required | object |
Returns a simple object containing a success boolean.
General error response from the platform
{- "token": "string",
- "password": "string"
}
{- "data": {
- "success": true
}
}
Enables two-factor auth for the Account. Retrieve the token from an authenticator app using the secret from getTwoFactorAuthSetup
.
Returns the recovery codes needed in case two-factor auth is no longer possible.
General error response from the platform
{- "token": "string"
}
{- "data": {
- "recovery_codes": [
- "string"
], - "totp_passcode": "string"
}
}