WebmeticDocs
Get startedDetectEnrichPersonalizeIntegrateManagePartnersDevelopers
PlaygroundPartner

Add a website

POST
/partner/customers/{account_id}/websites

Add a domain to a customer.

website is reduced to the main domain in lower case, as on create. Data only starts arriving once the tracking code with this customer's account_id runs on the domain.

Note: This endpoint is rate-limited to 30 requests per minute.

Authorization

APIKeyHeader
headerAuthorization<token>

Path Parameters

account_id*Account Id

Account id of the customer, from create-customer or the customer list

Request Body

application/json
  1. body
website*Website

Domain or full URL; stored as the main domain in lower case

Response Body

All domains of the customer, the new one included

application/json
  1. response
account_id*Account Id

Account id of the customer

websites*array<string>

All domains of the customer after the change

Example Request
curl -X POST 'https://hub.webmetic.de/partner/customers/string/websites' \  -H 'Content-Type: application/json' \  -d '{  "website": "nordhafen-anlagenbau.at"}'
Example Response
{  "account_id": "q4nx7h",  "websites": [    "nordhafen-anlagenbau.de",    "nordhafen-anlagenbau.at"  ]}