---
updatedAt: 2025-07-22T06:48:12.000Z
agentTools:
  projectIndex: https://api-doc.docusnap.com/llms.txt
---

# Add

Adds a new `Integration` object.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Docusnap365 REST API",
    "version": "1.1.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.docusnap365.com"
    }
  ],
  "paths": {
    "/api/v2/segment/integrations": {
      "post": {
        "tags": [
          "Integrations"
        ],
        "summary": "Add",
        "description": "Adds a new `Integration` object.",
        "operationId": "addIntegration",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "label",
                  "resourceTypeId",
                  "scope"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "description": "The display name of the integration object.",
                    "example": "SFTP01"
                  },
                  "domainId": {
                    "type": "string",
                    "description": "Refer to [Domains](https://api-doc.docusnap.com/reference/domains) to retrieve the `id` of a domain.",
                    "example": null
                  },
                  "siteId": {
                    "type": "string",
                    "description": "Refer to [Sites](https://api-doc.docusnap.com/reference/sites) to retrieve the `id` of a site.",
                    "example": null
                  },
                  "organizationId": {
                    "type": "string",
                    "description": "Refer to [Organizations](https://api-doc.docusnap.com/reference/organizations) to retrieve the `id` of an organization.",
                    "example": null
                  },
                  "platformId": {
                    "type": "string",
                    "description": "Refer to [Platforms](https://api-doc.docusnap.com/reference/platforms) to retrieve the `id` of a platform.",
                    "example": null
                  },
                  "scope": {
                    "type": "string",
                    "description": "Refer to [Integration scopes](https://api-doc.docusnap.com/v2.0/reference/integrationtypes) for available `Integration` scope values.",
                    "example": "Integration"
                  },
                  "resourceTypeId": {
                    "type": "string",
                    "description": "Refer to [Integration types](https://api-doc.docusnap.com/v2.0/reference/integrationtypes) to get a `Integration` type ID",
                    "example": "58708a52-8b28-4d63-a73c-b357ae1cdb4d"
                  },
                  "owner": {
                    "type": "string",
                    "description": "The Fully Qualified Domain Name (FQDN) of the object, representing its complete domain structure in the network.",
                    "example": "Administrator"
                  },
                  "format": {
                    "type": "integer",
                    "description": "The format of the data 0 -> CSV 1 -> JSON 2 -> XML 3 -> SOAP 4 -> EDIFACT 5 -> SQL Dump 6 -> Other",
                    "example": 0
                  },
                  "trigger": {
                    "type": "integer",
                    "description": "The type of how to trigger the integration. 0 -> Event-based 1 -> Scheduled 2 -> Manual",
                    "example": 0
                  }
                },
                "additionalProperties": {
                  "type": "string",
                  "description": "Allows adding key-value pairs for additional properties, enabling users to add custom fields as needed (if supported!)"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Integration object created successfully"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "Integrations"
    }
  ]
}
```