Create Own Application Invitation
Invites email to the calling service account's application: a pending enrollment, with no roles, that becomes real on that address's first sign-in (the account's verified email must match) and expires unused after expires_in_days (default 14, at most 90). Re-inviting an address replaces its open invitation. The invitee is emailed, naming invited_by_user as the inviter, who must be an active user of the organisation. Refused for an application open to everyone, and for a person already enrolled. Accepting makes the person a member of no team.
Service accounts only, of a platform application.
Required scopes: auth:application-invitations:manage:own
JWT access token obtained via OAuth2 flow or service account
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
emaillength <= 190The person in the product who asked: an active user of the organisation, named in the email as the inviter.
^urn:xeonr:auth:uid:user:[0-9]+$How long the invitation stays open; 0 is the default (14 days), at most 90.
int320 <= value <= 90Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.ApplicationInvitationService/CreateOwnApplicationInvitation" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"invitation": {
"invitationId": "string",
"email": "string",
"invitedByUser": "string",
"createdAt": "2023-01-15T01:30:15.01Z",
"expiresAt": "2023-01-15T01:30:15.01Z"
}
}xeonr.auth.api.v1.ApplicationInvitationService
ApplicationInvitationService lets a product invite a person by email to its OWN application (FRG-447): someone outside every team the application is entitled to, whom the product means to give access to one of its own resources (the forge giving a collaborator a repository). It is the email invitation the console's ApplicationService already has (CreateApplicationInvitation), opened to the product's service account: a pending enrollment addressed to the email that becomes a real enrollment on that address's first sign-in to the application, when the signed-in account's VERIFIED email matches. Accepting it enrolls the person in the application and nothing else: it makes them a member of no team, and the invitation carries no roles. Service accounts only, and only a platform application's own: every method refuses a person's token, is confined to the calling service account's application, and needs `auth:application-invitations:manage:own`, which no client holds until an organisation administrator approves it on the product's binding to the auth application. `invited_by_user` is the person in the product who asked; the invitation names them as the inviter (the email says who invited), and the service account is recorded as the actor.
List Own Application Invitations POST
Lists the calling service account's application's open invitations (not accepted, not expired), newest first; with `email`, that address's only. Service accounts only, of a platform application. **Required scopes:** `auth:application-invitations:manage:own`