---
updatedAt: 2026-07-13T07:05:39.000Z
agentTools:
  projectIndex: https://docs.getsmileapi.com/llms.txt
---

# Create Invite

Create and send an invite to a user

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Smile API",
    "version": "1.14.0",
    "description": "The Smile API provides employment and income data from a single API. ",
    "contact": {
      "name": "Smile Technology Pte Ltd",
      "url": "https://www.getsmileapi.com",
      "email": "info@getsmileapi.com"
    },
    "termsOfService": "https://www.getsmileapi.com/terms-and-conditions"
  },
  "servers": [
    {
      "url": "https://sandbox.smileapi.io/v1",
      "description": "Sandbox"
    },
    {
      "url": "https://open.smileapi.io/v1",
      "description": "Production"
    }
  ],
  "paths": {
    "/invites": {
      "post": {
        "summary": "Create Invite",
        "operationId": "create-invite",
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitePostResponse"
                },
                "examples": {
                  "Example": {
                    "value": {
                      "code": "OK",
                      "message": "Success",
                      "requestId": "5b79399a-6852-4234-bb0e-ad472648282d",
                      "data": {
                        "id": "17bbf36498de4d68a0d4f86c7b62f69f",
                        "createdAt": "2021-04-14T09:30:24Z",
                        "fullName": "George Cimafranca Palomero, Jr",
                        "firstName": "George",
                        "lastName": "Palomero",
                        "email": "gpalomero1234@smileapi.io",
                        "templateId": "tpl-b2c5e816-65ad-4130-819d-db89acc5869a",
                        "winkTemplateId": "wtpl-db89acc5869a-b2c5e816-65ad-4130-819d",
                        "userId": "tenantId-b2c5e816-65ad-4130-819d-db89acc5869a",
                        "status": "INVITED",
                        "updatedAt": "2021-04-14T09:30:24Z",
                        "invitedAt": "2021-04-14T09:30:24Z",
                        "linkedAt": "2021-04-14T09:30:24Z",
                        "inviteLandingPageUrl": "https://user.getsmileapi.com/invite-user/xx-xxxxxx?token=xxxxxxxxx"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "description": "Create and send an invite to a user",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitePostRequest"
              },
              "examples": {
                "Example": {
                  "value": {
                    "fullName": "Ryan Joseph Peterson Chua Ng",
                    "firstName": "Ryan",
                    "lastName": "Ng",
                    "email": "ryan1234@smileapi.io",
                    "templateId": "tpl-b2c5e81665ad4130819ddb89acc5869a",
                    "winkTemplateId": "wtpl-db89acc5869a-b2c5e816-65ad-4130-819d"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Invites"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ObjectMetadataRefCode": {
        "type": "string",
        "title": "ObjectMetadataRefCode",
        "description": "Request status code",
        "enum": [
          "OK",
          "CREATED",
          "INVALID_CREDENTIALS",
          "INVALID_PARAMETERS",
          "INVALID_TOKEN",
          "UNAUTHORIZED_ACCESS",
          "MISSING_RESOURCE",
          "REQUEST_LIMIT_EXCEEDED",
          "SERVER_ERROR",
          "UNSUPPORTED_METHOD",
          "SERVER_UNAVAILABLE",
          "TIME_LIMIT_EXCEEDED"
        ],
        "example": "OK",
        "x-internal": false
      },
      "ObjectMetadataRefMessage": {
        "type": "string",
        "title": "ObjectMetadataRefMessage",
        "description": "Message response to the request",
        "example": "Success",
        "x-internal": false
      },
      "ObjectMetadataRefRequestID": {
        "type": "string",
        "title": "ObjectMetadataRefRequestID",
        "description": "Unique ID that is added to the body of every response for easy traceability of the request in our logs.",
        "x-internal": false,
        "example": "5b79399a-6852-4234-bb0e-ad472648282d"
      },
      "RefObjectID": {
        "type": "string",
        "title": "Object ID",
        "description": "Unique ID of this object",
        "example": "17bbf36498de4d68a0d4f86c7b62f69f"
      },
      "RefDateTime": {
        "type": "string",
        "title": "Date and Time string",
        "format": "date-time",
        "example": "2021-04-14T09:30:24Z",
        "description": "Date and time"
      },
      "InviteStatus": {
        "type": "string",
        "enum": [
          "INVITED",
          "EMAIL_OPENED",
          "LANDING_PAGE_OPENED",
          "WINK_WIDGET_OPENED",
          "LINKED",
          "REVOKED"
        ],
        "description": "Status of the invite"
      },
      "Invite": {
        "title": "Invite",
        "type": "object",
        "description": "Invitation for a user to share their data.",
        "x-tags": [
          "Invites"
        ],
        "x-examples": {
          "Example": {
            "id": "inv-b2c5e816-65ad-4130-819d-db89acc5869a",
            "createdAt": "2021-04-14T09:30:24Z",
            "fullName": "George Cimafranca Palomero, Jr",
            "firstName": "George",
            "lastName": "Palomero",
            "email": "gpalomero1234@smileapi.io",
            "templateId": "tpl-b2c5e816-65ad-4130-819d-db89acc5869a",
            "winkTemplateId": "wtpl-db89acc5869a-b2c5e816-65ad-4130-819d",
            "userId": "tenant-17bbf36498de4d68a0d4f86c7b62f69f",
            "status": "INVITED",
            "updatedAt": "2021-04-14T09:30:24Z",
            "invitedAt": "2021-04-14T09:30:24Z",
            "linkedAt": "2021-04-14T09:30:24Z",
            "inviteLandingPageUrl": "https://user.getsmileapi.com/invite-user/xx-xxxxxx?token=xxxxxxxxx"
          }
        },
        "properties": {
          "id": {
            "$ref": "#/components/schemas/RefObjectID"
          },
          "createdAt": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "fullName": {
            "type": "string",
            "example": "George Cimafranca Palomero, Jr",
            "description": "The full name of the invited user"
          },
          "firstName": {
            "type": "string",
            "example": "George",
            "description": "The first name of the invited user"
          },
          "lastName": {
            "type": "string",
            "example": "Palomero",
            "description": "The last name of the invited user"
          },
          "email": {
            "example": "gpalomero1234@smileapi.io",
            "description": "The email address of the invited user",
            "format": "email",
            "type": "string"
          },
          "templateId": {
            "type": "string",
            "description": "The template ID used in the invitation",
            "example": "tpl-b2c5e816-65ad-4130-819d-db89acc5869a"
          },
          "winkTemplateId": {
            "type": "string",
            "description": "The Wink template ID used in the invitation",
            "example": "wtpl-db89acc5869a-b2c5e816-65ad-4130-819d"
          },
          "userId": {
            "type": "string",
            "description": "The user ID for this invitation",
            "example": "tenantId-b2c5e816-65ad-4130-819d-db89acc5869a"
          },
          "status": {
            "$ref": "#/components/schemas/InviteStatus"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "invitedAt": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "linkedAt": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "inviteLandingPageUrl": {
            "type": "string",
            "description": "URL of the unique landing page for the invited user to connect their accounts"
          }
        },
        "required": [
          "id",
          "createdAt",
          "fullName",
          "email",
          "templateId",
          "userId",
          "status",
          "updatedAt",
          "invitedAt",
          "linkedAt"
        ]
      },
      "InvitePostRequest": {
        "title": "InvitePostRequest",
        "type": "object",
        "description": "",
        "required": [
          "email",
          "fullName",
          "templateId"
        ],
        "properties": {
          "fullName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "George Cimafranca Palomero, Jr",
            "description": "The full name of the person to be invited"
          },
          "firstName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "The first name of the person to be invited",
            "example": "George"
          },
          "lastName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "The last name of the person to be invited",
            "example": "Palomero"
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "gpalomero1234@smileapi.io",
            "description": "Email of the person to be invited",
            "format": "email"
          },
          "templateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "The template ID to be used in the invite",
            "example": "tpl-b2c5e816-65ad-4130-819d-db89acc5869a"
          },
          "winkTemplateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "The Wink template ID used in the invitation",
            "example": "wtpl-db89acc5869a-b2c5e816-65ad-4130-819d"
          }
        }
      },
      "InvitePostResponse": {
        "title": "InvitePostResponse",
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/ObjectMetadataRefCode"
          },
          "message": {
            "$ref": "#/components/schemas/ObjectMetadataRefMessage"
          },
          "requestId": {
            "$ref": "#/components/schemas/ObjectMetadataRefRequestID"
          },
          "data": {
            "$ref": "#/components/schemas/Invite"
          }
        },
        "x-examples": {}
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ]
}
```