Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: XFA Invitations API
version: '1'
servers:
- url: https://api.xfa.tech
description: Production stack API url
- url: https://test-api.xfa.tech
description: Test stack API url
security:
- bearerAuth: []
tags:
- name: Invitations
paths:
/invitations:
post:
summary: Create an invitation
x-internal: true
tags:
- Invitations
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InvitationRequest'
responses:
'200':
description: Invitation created
content:
application/json:
schema:
$ref: '#/components/schemas/InvitationResponse'
operationId: postInvitations
x-operation-id-source: derived
put:
summary: Resend invitation
x-internal: true
tags:
- Invitations
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ResendInvitationRequest'
responses:
'204':
description: Invitation resent
operationId: putInvitations
x-operation-id-source: derived
/invitations/{invitationToken}:
get:
summary: Get invitation information
x-internal: true
tags:
- Invitations
parameters:
- in: path
name: invitationToken
description: token linked to invitation
required: true
schema:
type: string
responses:
'200':
description: Returns the invitation information
content:
application/json:
schema:
$ref: '#/components/schemas/InvitationInformationResponse'
operationId: getInvitationsByInvitationToken
x-operation-id-source: derived
components:
schemas:
InvitationResponse:
type: object
properties:
invitation_token:
type: string
description: Invitation token
invitation_url:
type: string
description: url to invitation
quota:
$ref: '#/components/schemas/ManualAwarenessQuota'
invited_by:
type: string
description: Authenticated inviter email or stable automated origin identifier
required:
- invitation_token
- invitation_url
InvitationRequest:
type: object
properties:
organization_id:
type: string
description: ID of the organization
email:
type: string
description: Email of the user
send_email:
type: boolean
description: Whether to send an email invitation. Defaults to true.
send_slack_message:
type: boolean
description: Whether to send a Slack invitation message. Defaults to false.
send_teams_message:
type: boolean
description: Whether to send a Microsoft Teams invitation message. Defaults to false.
required:
- organization_id
- email
InvitationInformationResponse:
type: object
properties:
organization_id:
type: string
description: ID of the organization
organization_name:
type: string
description: Name of the organization
email:
type: string
description: Email of the user
timestamp:
type: string
format: date-time
description: Timestamp of the invitation
invitation_token:
type: string
description: Invitation token
logo_url:
type: string
description: Logo of the inviting organization, as a base64 data URL (`data:image/...;base64,...`). Every logo uploaded through this API is stored in that form. Absent when the organization has no logo, when its logo is a legacy http(s) URL, or when the logo could not be read quickly enough; the invitation is returned either way.
ManualAwarenessQuota:
type: object
description: Manual-awareness message counter reported after a send. A limit of 0 means unlimited.
properties:
used:
type: integer
description: Number of manual-awareness messages used in the current period
limit:
type: integer
description: Manual-awareness message limit for the current period. 0 means unlimited.
remaining:
type: integer
description: Number of manual-awareness messages remaining in the current period
period:
type: string
enum:
- trial
- month
description: Period the quota applies to
required:
- used
- limit
- remaining
- period
ResendInvitationRequest:
type: object
properties:
organization_id:
type: string
description: ID of the organization
email:
type: string
description: Email of the user
send_email:
type: boolean
description: Whether to send an email invitation. Defaults to true.
send_slack_message:
type: boolean
description: Whether to send a Slack invitation message. Defaults to false.
send_teams_message:
type: boolean
description: Whether to send a Microsoft Teams invitation message. Defaults to false.
required:
- organization_id
- email
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT