---
title: "Create a new record"
method: POST
path: "/v1/objects/{slug}"
tags: ["Records"]
---

# Create a new record

`POST /v1/objects/{slug}`

## Request

- Base URL: `https://app.nex.ai/api/developers`
- URL: `https://app.nex.ai/api/developers/v1/objects/{slug}`
- Auth: API key in header `Authorization`

Creates a new record for a specific object type with the provided attributes

## Path parameters

- `slug` string, required

## Request body

- DeveloperCreateRecordRequest
  - `attributes` object, required
    - `name` union, required: Can be a string (e.g., 'John Doe') or an object (e.g., {'first_name': 'John', 'last_name': 'Doe'} for Person objects).
      - string
      - object

## Response `200`

Created record with all attributes

- DeveloperCreateRecordResponse
  - `attributes` object
  - `created_at` string
  - `id` string
  - `object_id` string
  - `type` string
  - `updated_at` string
  - `workspace_id` string

## Other responses

- `400`: Bad request - Invalid data
- `401`: Unauthorized - Invalid or missing API key
- `404`: Object type not found
- `500`: Internal server error

## Changes

- **2026-02-17** `b05d8cb8cf43`: 1 info
  - api operation id `createRecord` was added
- **2025-08-20** `15b859d2ef86`: 2 breaking
  - added the new required request property `attributes/name`
  - the request property `attributes` became required
- **2025-08-19** `c7b3e291a84e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nex/apis/nex-developer-api/changes/v1/objects/:slug/post.md)

---

[API](https://skmtc.dev/nex/apis/nex-developer-api.md) - [All operations](https://skmtc.dev/nex/apis/nex-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nex/apis/nex-developer-api/revisions/51003af13108?raw)
