Visitar URL original
Create Data Source | Klaviyo API ReferenceSkip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/create_data_source.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_data_source.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers

POSThttps://a.klaviyo.com/api/data-sources

Create a new data source in an account

Revision header
revision: 2026-10-15required
Scopes
custom-objects:write
Rate limits
Burst: 3/sSteady: 60/m

Query parameters

  • fields[data-source]#string[]

    For more information please visit API overview

    Allowed values:
    • description
    • id
    • namespace
    • title
    • visibility

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • data-source
    • attributes#objectrequired
      Show 4 fields
      • title#stringrequired

        The title of the data source. Must be between 1 and 255 characters and unique within the namespace.

      • visibility#stringnullable

        Visibility of data source.

        Allowed values:
        • private
        • shared

        Default: private

        Example: private

      • description#stringnullable

        Default:

      • namespace#stringnullable

        The namespace of the data source.

        Default: custom-objects

        Example: custom-objects

Responses

201Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • data-source
    • id#stringrequired

      The ID of the data source

      Example: 01KH1D6P9Y8TJ7Q6MHXWZMPDN3

    • attributes#objectrequired
      Show 4 fields
      • title#stringrequired

        The title of the data source

        Example: Pet Care CRM

      • visibility#stringrequired

        The status of the data source

        Allowed values:
        • private
        • shared
      • description#stringrequired

        The description of the data source

        Example: Subscription records exported from the pet care CRM

      • namespace#stringrequired

        The namespace of the data source

        Example: custom-objects

  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string