Skip to main content
POST
/
v1
/
guests
Create a new guest
curl --request POST \
  --url https://{workspace}.attendu.com/api/v1/guests \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "event": "<string>",
  "properties": {
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "<string>",
    "lang": "<string>",
    "ticketType": "<string>"
  },
  "extras": {
    "roommates": [
      "<string>"
    ]
  }
}
'
{
  "_id": "<string>",
  "event": "<string>",
  "status": {
    "confirmation": 2,
    "attendance": 1,
    "declineMessage": null,
    "givenConsents": [],
    "visitedZones": [],
    "addMethod": "publicRegistration",
    "checkInMethod": "qrScan"
  },
  "properties": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "john@example.com",
    "lang": "en",
    "X62TkjiV": "My custom note",
    "yN9hzaCj": "1QLXYBlw",
    "Ybb48GO7": [
      "7bR7m2au",
      "BdwYyYmi"
    ],
    "ticketType": "QF78tnh3"
  },
  "confirmedAt": "2023-11-07T05:31:56Z",
  "attendedAt": "2023-11-07T05:31:56Z",
  "starred": false,
  "extras": {
    "roommates": [
      "507f1f77bcf86cd799439011",
      "507f191e810c19729de860ea"
    ],
    "payment": {
      "isPaid": true,
      "paidAt": "2023-04-15T14:30:00Z",
      "stripePaymentIntent": "pi_3RJut1234567890",
      "stripeInvoice": "in_1RJutEIz1234567890",
      "usedPromoCodes": [
        {
          "id": "43oMGCex",
          "amount": 100,
          "code": "U2QWC8"
        }
      ]
    }
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
event
string
required

Event ID

properties
object
required

Guest required properties and any custom properties defined for the event

extras
object

Optional additional guest data

Response

Guest created successfully.

_id
string
required

Guest ID

event
string
required

Event ID

status
object
required

Guest status information including confirmation, attendance, consents and check-in details

Example:
{
  "confirmation": 2,
  "attendance": 1,
  "declineMessage": null,
  "givenConsents": [],
  "visitedZones": [],
  "addMethod": "publicRegistration",
  "checkInMethod": "qrScan"
}
properties
object
required

Guest properties including default required fields and any custom properties defined for the event

Example:
{
  "firstName": "John",
  "lastName": "Doe",
  "email": "john@example.com",
  "lang": "en",
  "X62TkjiV": "My custom note",
  "yN9hzaCj": "1QLXYBlw",
  "Ybb48GO7": ["7bR7m2au", "BdwYyYmi"],
  "ticketType": "QF78tnh3"
}
confirmedAt
string<date-time> | null

Date and time when the guest was confirmed

attendedAt
string<date-time> | null

Date and time when the guest attended the event

starred
boolean
default:false

Indicates if the guest is starred

extras
object

Optional additional guest data

Example:
{
  "roommates": [
    "507f1f77bcf86cd799439011",
    "507f191e810c19729de860ea"
  ],
  "payment": {
    "isPaid": true,
    "paidAt": "2023-04-15T14:30:00Z",
    "stripePaymentIntent": "pi_3RJut1234567890",
    "stripeInvoice": "in_1RJutEIz1234567890",
    "usedPromoCodes": [
      {
        "id": "43oMGCex",
        "amount": 100,
        "code": "U2QWC8"
      }
    ]
  }
}