---
updatedAt: 2025-03-06T23:51:48.000Z
agentTools:
  projectIndex: https://getquanty.readme.io/llms.txt
---

# Segmentation

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "GetQuanty",
    "license": {
      "name": "MIT"
    }
  },
  "servers": [
    {
      "url": "https://api.getquanty.com"
    }
  ],
  "paths": {
    "/v1/companies/segments/add": {
      "post": {
        "summary": "This endpoint allows to add a company to a segment. The segment must have previously been created in GetQuanty otherwise the service returns an error. At least one of the fields must exist between gq_company and gq_siren or gq_siret. The gq_domain and gq_website fields are optional and allow you to add segment membership conditions in \"or\" mode.",
        "operationId": "CompanyToSegment",
        "tags": [
          "CompanyToSegment"
        ],
        "requestBody": {
          "description": "Required payload to add company to segment.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyToSegmentPayload"
              },
              "examples": {
                "companyToSegmentPayloadExemple": {
                  "$ref": "#/components/examples/companyToSegmentPayloadExemple"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Operation result of adding a company to segment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIResponse"
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "CompanyToSegmentPayload": {
        "type": "object",
        "required": [
          "segment",
          "gq_company",
          "gq_siren"
        ],
        "properties": {
          "segment": {
            "type": "string"
          },
          "gq_company": {
            "type": "string"
          },
          "gq_siren": {
            "type": "string"
          },
          "gq_siret": {
            "type": "string"
          },
          "gq_domain": {
            "type": "string"
          },
          "gq_website": {
            "type": "string"
          }
        }
      },
      "APIResponse": {
        "type": "object",
        "required": [
          "status",
          "meta_result",
          "result"
        ],
        "properties": {
          "status": {
            "type": "string"
          },
          "meta_result": {
            "type": "object"
          },
          "result": {
            "type": "object"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "reason"
        ],
        "properties": {
          "status": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        }
      }
    },
    "examples": {
      "companyToSegmentPayloadExemple": {
        "value": {
          "segment": "Prospect-P0",
          "gq_company": "GetQuanty",
          "gq_siren": "480405687"
        },
        "summary": "Add company to segment payload"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```