Skip to main content
POST
/
v1
/
objects
/
{slug}
Create a new record
curl --request POST \
  --url https://app.nex.ai/api/developers/v1/objects/{slug} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "attributes": {
    "name": {
      "first_name": "John",
      "last_name": "Doe"
    },
    "name (alternative)": "John Doe",
    "email_addresses": [
      "[email protected]"
    ],
    "phone_number": {
      "country_code": 1,
      "number": "5551234567"
    },
    "job_title": "Software Engineer",
    "location": {
      "street": "123 Main St",
      "city": "Boston",
      "region": "MA",
      "postal_code": "02134",
      "country": "US"
    }
  }
}
'
{
  "id": "32710180831586561",
  "object_id": "32710180831586560",
  "type": "person",
  "workspace_id": "32710180831586559",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "attributes": {
    "name": {
      "first_name": "John",
      "last_name": "Doe"
    },
    "email_addresses": [
      "[email protected]"
    ],
    "phone_number": {
      "country_code": 1,
      "number": "5551234567"
    },
    "job_title": "Software Engineer",
    "location": {
      "street": "123 Main St",
      "city": "Boston",
      "region": "MA",
      "postal_code": "02134",
      "country": "US"
    }
  }
}

Authorizations

Authorization
string
header
required

API key for authentication (format: "Bearer YOUR_API_KEY")

Path Parameters

slug
string
required

Object slug (e.g., 'person', 'company')

Body

application/json

Record attributes

attributes
object
required

Response

Created record with all attributes

attributes
object
created_at
string
id
string
object_id
string
type
string
updated_at
string
workspace_id
string