Organizations

Create organization

Creates a new organization.

POST
/organizations
x-api-key<token>

In: header

namestring

The name of the new organization

Length2 <= length <= 1024
contactEmails?array<string>
coupons?array<string>
regionTemplate?
primaryDomainstring
Value in"localhost" | "127.0.0.1" | "::1"
organizationSlug?string
Lengthlength <= 256
privacyPolicyUrlstring
subscription?
termsOfServiceUrl?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.concord.tech/privacy-v1/organizations" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "primaryDomain": "localhost",    "privacyPolicyUrl": "string"  }'
{
  "createdAt": [
    null
  ],
  "updatedAt": [
    null
  ],
  "defaultProjectId": [
    null
  ],
  "billingEmails": [
    null
  ],
  "billingPhoneNumber": [
    null
  ],
  "billingAddress": [
    null
  ],
  "subscription": [
    null
  ],
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "dateCreated": 0,
  "dateUpdated": 0,
  "primaryDomain": "string",
  "slug": "string",
  "projects": [
    {
      "default": [
        null
      ],
      "contactEmail": "user@example.com",
      "contactEmails": [
        "user@example.com"
      ],
      "dateCreated": 0,
      "dateUpdated": 0,
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "mode": [
        null
      ],
      "name": "string",
      "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
      "organization": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "string",
        "slug": "string",
        "status": "string"
      },
      "sendFromEmailId": "default",
      "sendFromEmail": {
        "id": "default",
        "email": "user@example.com",
        "name": "string"
      },
      "settings": {
        "trackers": {
          "deepScan": true,
          "realTimeScan": false,
          "lastRealTimeScan": 0
        }
      },
      "slug": "string",
      "status": "active",
      "statusFlags": {
        "isActive": true,
        "isTest": true
      },
      "type": "website"
    }
  ],
  "status": "active",
  "statusDate": 0,
  "statusFlags": {
    "isActive": true
  },
  "features": "26ab6f9b-05df-4b4e-b7c6-e1daa3249f9b",
  "stripe": {
    "customerId": "string",
    "subscriptionId": "string",
    "clientSecret": "string"
  }
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "string"
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Forbidden"
}
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "Forbidden"
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Not Found"
}
{
  "statusCode": 422,
  "error": "Unprocessable Entity",
  "message": "string"
}
{
  "statusCode": 500,
  "error": "Internal Server Error",
  "message": "Internal Server Error"
}