Create Invites

URL

https://us-central1-ohyay-prod-d7acf.cloudfunctions.net/ohyayapi/create-invites

Request Format

interface InviteRequest {
  userId: string;
  wsid: string;
  invites: {
    to?: string;          // Email, optional
    validFrom?: number;   // epoch millis, optional
    validUntil?: number;  // epoch millis, optional
    displayName?: string; // Name to pre-populate on the landing page, optional
    subtitle?: string;    // Subtitle to pre-populate on the landing page, optional
    tags?: { [tag: string]: boolean }; // prepopulated tags for user, optional
  }[];
}

Response Format

interface InviteResponse {
  links: string[];
}