Accounts and users
Invite user
[!note] Management API endpoints are not meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.
Create a new user in the account and send an invitation to their email address.
[!note] The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the Resend invitation email endpoint.
post/v2/invites
Request
- Base URLhttps://yourbaseurl.talon.one
- Auth
- API key in header Authorization
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "John Doe",
"email": "john.doe@example.com",
"roles": [
13
]
}Response
Created
Example response
{
"id": 6,
"created": "2020-06-10T09:05:27.993483Z",
"modified": "2021-09-12T10:12:42Z",
"email": "john.doe@example.com",
"accountId": 3886,
"name": "John Doe",
"state": "invited",
"inviteToken": "Gy9b8w1irmQtEPo5RmbMmSPheL5h4",
"policy": {
"Role": 127,
"Applications": null
},
"roles": [
71
],
"authMethod": "basic_auth",
"applicationNotificationSubscriptions": {},
"lastSignedIn": "2021-09-12T10:12:42Z",
"lastAccessed": "2021-09-12T10:14:42Z",
"latestFeedTimestamp": "2020-06-01T00:00:00Z",
"additionalAttributes": {}
}Changes
No recorded changes to this operation across all 2 revisions of this API.