> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zapier.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create records in a table or view

> Adds records to the table or view matching the table_id.

The request is refused if the account's record limit does not accommodate
it, if any record fails validation against the table's fields, if
`change_options` names a member or a value this operation does not publish,
or if `new_records` holds more records than its `maxItems` allows. Records
are created together: a request that is refused creates none of them.

Send an `Idempotency-Key` with every write. A retry that arrives after the
first request has finished and reuses the key and the payload answers with
the original response instead of creating the records a second time. Two
requests racing with one key can both execute, and a response too large to
store is not replayed.



## OpenAPI

````yaml /api-reference/specs/tables.yaml post /tables/v2/tables/{table_id}/records
openapi: 3.1.0
info:
  title: Tables API
  description: >-
    Read and write Tables by Zapier data — create and manage tables and their
    fields, and create, query, update and delete the records in them.
  version: 1.0.0
  contact:
    url: https://docs.zapier.com
servers:
  - url: https://api.zapier.com
    description: Production
security:
  - OAuth: []
tags:
  - name: Fields
    description: Operations for managing the fields on a table.
  - name: Records
    description: Operations for managing the records in a table.
  - name: Tables
    description: Operations for creating and managing tables.
paths:
  /tables/v2/tables/{table_id}/records:
    post:
      tags:
        - Records
      summary: Create records in a table or view
      description: >-
        Adds records to the table or view matching the table_id.


        The request is refused if the account's record limit does not
        accommodate

        it, if any record fails validation against the table's fields, if

        `change_options` names a member or a value this operation does not
        publish,

        or if `new_records` holds more records than its `maxItems` allows.
        Records

        are created together: a request that is refused creates none of them.


        Send an `Idempotency-Key` with every write. A retry that arrives after
        the

        first request has finished and reuses the key and the payload answers
        with

        the original response instead of creating the records a second time. Two

        requests racing with one key can both execute, and a response too large
        to

        store is not replayed.
      operationId: createTableRecords
      parameters:
        - name: table_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            examples:
              - 01563e3a-b5d3-d676-4c61-efb99302bd5b
            title: Table Id
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            description: >-
              Optional idempotency key (max 255 chars). The same key with the
              same payload returns the original response for up to 24 hours; the
              same key with a different payload returns 422.
            title: Idempotency-Key
            oneOf:
              - type: string
                maxLength: 255
              - type: 'null'
          description: >-
            Optional idempotency key (max 255 chars). The same key with the same
            payload returns the original response for up to 24 hours; the same
            key with a different payload returns 422.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2CreateTableRecordsRequest'
            examples:
              One record:
                summary: Create a single record
                description: >-
                  A record key is `f{field_id}`, or the field's slug where the
                  account has slugs enabled. A field left out is created empty
                value:
                  new_records:
                    - data:
                        f1: Acme Corp
                        f2: 12
              Several records:
                summary: Create several records in one request
                description: >-
                  They are created together, and the response reports them in
                  the order they were sent
                value:
                  new_records:
                    - data:
                        f1: Acme Corp
                        f2: 12
                    - data:
                        f1: Globex
                        f2: 7
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CreateTableRecordsResponse'
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
        '400':
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
          description: Bad Request
        '401':
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
          description: Unauthorized
        '403':
          description: >-
            Refused: the token's scope does not permit this operation
            (`auth:insufficient_scope`), or the table's sharing does not grant
            the caller this action (`permissions:errors`), or a linked record
            names a source table the caller cannot read
            (`linked_records:source_table_access`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '404':
          description: >-
            Not found: no table or view has that id (`table:notfound`), or the
            table was deleted while the request was in flight
            (`schema:table_deleted`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '409':
          description: >-
            Conflict: the write duplicates a value in a field the table requires
            to be unique (`record:uniqueconstraint`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '422':
          description: >-
            Cannot process: the request names more items than the operation's
            maxItems allows (`max_values_exceeded`, with the limit in
            meta.max_values), or the key was reused with a different payload
            (`idempotency:key_mismatch`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '429':
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying the request
              schema:
                type: integer
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          description: Too Many Requests
        '503':
          description: >-
            The Public API Gateway could not reach the authorization service.
            The condition is transient; retry the request.
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying the request
              schema:
                type: integer
      security:
        - OAuth:
            - external
            - table:record:write
components:
  schemas:
    V2CreateTableRecordsRequest:
      properties:
        new_records:
          items:
            $ref: '#/components/schemas/V2NewRecord'
          type: array
          maxItems: 1000
          title: New Records
          description: The records to create, and at most 1000 of them in one request
        change_options:
          description: >-
            Options that control how the created records' changes are processed
            and delivered
          allOf:
            - $ref: '#/components/schemas/V2RecordChangeOptions'
      additionalProperties: false
      type: object
      required:
        - new_records
      title: V2CreateTableRecordsRequest
      description: The records to create, and how their changes are delivered.
    V2CreateTableRecordsResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/V2Record'
          type: array
          title: Results
          description: The records this request created
        meta:
          $ref: '#/components/schemas/V2EmptyMeta'
      type: object
      required:
        - results
        - meta
      title: V2CreateTableRecordsResponse
      description: The records the request created.
    ErrorsResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Detailed error description
        code:
          type: string
          title: Code
          description: Error code identifying the type of error
        message:
          type: string
          title: Message
          description: Human-readable error message
          default: ''
        support_id:
          type: string
          title: Support Id
          description: Support identifier for tracking this error
          default: ''
          x-zapier-id-format-exempt: true
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Additional metadata about the error
        errors:
          items:
            $ref: '#/components/schemas/Error'
          type: array
          title: Errors
          description: List of specific errors that occurred
      type: object
      required:
        - detail
        - code
        - meta
        - errors
      title: ErrorsResponse
      description: Represents an API error response with detailed information.
    V2NewRecord:
      properties:
        data:
          additionalProperties: true
          type: object
          title: Data
          description: >-
            The record's values, keyed by field key (`f{id}`), or by the field's
            slug where the account has slugs enabled. A field left out is
            created empty
      additionalProperties: false
      type: object
      required:
        - data
      title: V2NewRecord
      description: A record to create.
    V2RecordChangeOptions:
      properties:
        change_mode:
          type: string
          enum:
            - silent
            - normal
            - per_settings
          title: Change Mode
          description: >-
            Whether the change triggers downstream automations. 'silent' never
            triggers them, 'normal' always does, and 'per_settings' follows the
            table's own send-records setting
          default: normal
        stash_mode:
          type: string
          enum:
            - none
            - store
            - per_settings
          title: Stash Mode
          description: >-
            Whether the change is kept for pending automations. 'none' keeps
            nothing, 'store' keeps it, and 'per_settings' follows the table's
            own send-records setting
          default: none
        linked_records_lookup_mode:
          type: string
          enum:
            - skip
            - reject
          title: Linked Records Lookup Mode
          description: >-
            What to do when a linked record's source record cannot be found:
            'reject' fails the whole request, 'skip' drops the invalid linked
            value and continues
          default: reject
        session_nonce:
          title: Session Nonce
          description: >-
            Identifies the session that made the change, so a caller subscribed
            to realtime updates can recognize and ignore its own writes
          oneOf:
            - type: integer
            - type: 'null'
      additionalProperties: false
      type: object
      title: V2RecordChangeOptions
      description: Options that control how a record change is processed and delivered.
      required: []
    V2Record:
      properties:
        id:
          type: string
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          format: uuid
          title: Id
          description: Unique identifier for the record
          examples:
            - 01563e3a-b5d3-d676-4c61-efb99302bd5b
        data:
          additionalProperties: true
          type: object
          title: Data
          description: >-
            The record's data, keyed by field key (`f{id}`). On an account whose
            field-slug rollout has reached it, a field that has a user-defined
            slug is keyed by the slug instead
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the record was created
        edited_at:
          type: string
          format: date-time
          title: Edited At
          description: When the record was last modified
        deleted_at:
          title: Deleted At
          description: >-
            Timestamp when the record was moved to the trash, or null if it is
            active
          oneOf:
            - type: string
              format: date-time
            - type: 'null'
        is_source_record:
          title: Is Source Record
          description: >-
            Whether this record is currently used as the source of a linked
            record field, somewhere else in the account. Null when the operation
            did not compute it: `queryTableRecords` skips it when
            `annotate_linked_source=false`, and the create and update operations
            never compute it
          oneOf:
            - type: boolean
            - type: 'null'
        errors:
          additionalProperties:
            $ref: '#/components/schemas/V2RecordFieldError'
          type: object
          title: Errors
          description: Validation errors for the record's fields, keyed like `data`
      type: object
      required:
        - id
        - data
        - created_at
        - edited_at
      title: V2Record
      description: A record of a table.
    V2EmptyMeta:
      properties: {}
      type: object
      title: V2EmptyMeta
      description: No metadata accompanies this response.
      required: []
    Error:
      properties:
        title:
          type: string
          title: Title
          description: Human-readable error title or summary
        status:
          title: Status
          description: HTTP status code associated with this error
          oneOf:
            - type: integer
            - type: 'null'
        code:
          title: Code
          description: Error code identifying the type of error
          oneOf:
            - type: string
            - type: 'null'
        detail:
          title: Detail
          description: Detailed description of the error
          oneOf:
            - type: string
            - type: 'null'
        meta:
          title: Meta
          description: Additional metadata about the error
          oneOf:
            - additionalProperties: true
              type: object
            - type: 'null'
      type: object
      required:
        - title
      title: Error
      description: Represents an error that occurred during API request processing.
    V2RecordFieldError:
      properties:
        severity:
          type: string
          enum:
            - error
            - warning
          title: Severity
          description: Whether the value was rejected ('error') or accepted with a warning
        value:
          title: Value
          description: The value that failed validation or raised the warning
        message:
          type: string
          title: Message
          description: Technical description of the validation failure
        human_message:
          title: Human Message
          description: >-
            A version of `message` suitable for display to a person, when the
            failure has one
          oneOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - severity
        - value
        - message
      title: V2RecordFieldError
      description: Why one field of a record was rejected, or flagged as suspicious.
  securitySchemes:
    OAuth:
      type: oauth2
      description: OAuth 2.0 authentication.
      flows:
        authorizationCode:
          authorizationUrl: https://zapier.com/oauth/authorize
          tokenUrl: https://zapier.com/oauth/token
          scopes:
            external: Scope that gives access to all Public APIs
            table:read: Grants table:read access
            table:write: Grants table:write access
            table:delete: Grants table:delete access
            table:field:read: Grants table:field:read access
            table:field:write: Grants table:field:write access
            table:field:delete: Grants table:field:delete access
            table:record:write: Grants table:record:write access
            table:record:delete: Grants table:record:delete access
            table:record:read: Grants table:record:read access
        clientCredentials:
          tokenUrl: https://zapier.com/oauth/token
          scopes:
            external: Scope that gives access to all Public APIs
            table:read: Grants table:read access
            table:write: Grants table:write access
            table:delete: Grants table:delete access
            table:field:read: Grants table:field:read access
            table:field:write: Grants table:field:write access
            table:field:delete: Grants table:field:delete access
            table:record:write: Grants table:record:write access
            table:record:delete: Grants table:record:delete access
            table:record:read: Grants table:record:read access

````