Boltmesh Docs
OpenAPI

Create a waitlist item

Create a waitlist item.

POST
/v1/waitlists/{id}/items

Authorization

Authorization

AuthorizationBearer <token>

Your team's root key.

In: header

Request Body

application/jsonRequired
emailstring
Format"email"

Path Parameters

idstring

Unique ID

Pattern"^[a-zA-Z0-9_-]{21}$"
Length21 <= length <= 21

Response Body

OK

TypeScript Definitions

Use the response body type in TypeScript.

okboolean

The response status.

messagestring

The reponse messgae.

item?object
total?number

The amount of the resource.

curl -X POST "https://api.boltmesh.com/v1/waitlists/stringstringstringstr/items" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com"
  }'
const body = JSON.stringify({
  "email": "user@example.com"
})

fetch("https://api.boltmesh.com/v1/waitlists/stringstringstringstr/items", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://api.boltmesh.com/v1/waitlists/stringstringstringstr/items"
  body := strings.NewReader(`{
    "email": "user@example.com"
  }`)
  req, _ := http.NewRequest("POST", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.boltmesh.com/v1/waitlists/stringstringstringstr/items"
body = {
  "email": "user@example.com"
}
response = requests.request("POST", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "ok": true,
  "message": "string",
  "item": {
    "id": "string",
    "projectId": "string",
    "email": "string",
    "createdAt": "2019-08-24T14:15:22Z"
  },
  "total": 16
}