POST
/
organizations
/
{organizationId}
/
projects
curl --request POST \
  --url https://api.concord.tech/privacy-v1/organizations/{organizationId}/projects \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "type": "website",
  "contactEmails": [
    "jsmith@example.com"
  ],
  "regionTemplate": {
    "name": "<string>",
    "regions": "default",
    "customScript": "<string>",
    "settings": {
      "branding": {
        "buttonRadius": "<string>",
        "cardRadius": "<string>",
        "font": "<string>",
        "logoUrl": "<string>",
        "primaryColor": "<string>",
        "secondaryColor": "<string>",
        "poweredByConcord": true
      },
      "consent": {
        "blockingMode": "disabled",
        "consentMode": "implied",
        "consentBanner": {
          "enabled": true,
          "layout": "bar",
          "position": [
            "<any>"
          ],
          "policy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "title": true,
          "theme": "brand",
          "closeButton": true,
          "denyButton": true,
          "customizeButton": true
        },
        "doNotSell": true,
        "consentDuration": 123,
        "gcm": "disabled",
        "gpc": true,
        "limitPii": true
      },
      "crossSiteTracking": true,
      "floatingButton": {
        "enabled": true,
        "position": "<string>",
        "theme": "brand",
        "type": "circle",
        "icon": "cookie"
      },
      "privacyCenter": {
        "consentHistory": true,
        "disclosures": true,
        "privacyRequests": true,
        "doNotSellRequests": true,
        "position": "<string>",
        "theme": "brand"
      }
    },
    "language": {
      "enabled": true
    }
  },
  "domains": [
    "localhost"
  ],
  "privacyPolicyUrl": "<string>",
  "termsOfServiceUrl": "<string>"
}'
{
  "default": [
    "<any>"
  ],
  "contactEmail": "jsmith@example.com",
  "contactEmails": [
    "jsmith@example.com"
  ],
  "dateCreated": 123,
  "dateUpdated": 123,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "mode": [
    "<any>"
  ],
  "name": "<string>",
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "slug": "<string>",
    "status": "<string>"
  },
  "sendFromEmailId": "default",
  "sendFromEmail": {
    "id": "default",
    "email": "jsmith@example.com",
    "name": "<string>"
  },
  "slug": "<string>",
  "status": "active",
  "statusFlags": {
    "isActive": [
      "<any>"
    ],
    "isTest": [
      "<any>"
    ]
  },
  "type": "website"
}

Authorizations

x-api-key
string
header
required

Path Parameters

organizationId
string
required

Body

application/json
name
string
required
Required string length: 2 - 1024
type
enum<string>
Available options:
website
contactEmails
string[]
regionTemplate
object
domains
(enum<string> | string)[]
Available options:
localhost,
127.0.0.1,
::1
privacyPolicyUrl
string
termsOfServiceUrl
string

Response

201
application/json
Default Response
dateCreated
integer
required
dateUpdated
integer
required
id
string
required
name
string
required
Required string length: 3 - 1024
organizationId
string
required
slug
string
required
Maximum length: 256
statusFlags
object
required
type
enum<string>
required
Available options:
website
default
contactEmail
string
contactEmails
string[]
mode
organization
object
sendFromEmailId
default:default
Available options:
default
sendFromEmail
object
status
enum<string>
Available options:
active,
test,
archived