Websites
Create a website
POST
/api/websitesCreates a website with a name and domain, optionally assigning it to a team and creating a share.
Headers
| Name | Type | Description |
|---|---|---|
| Authorizationrequired | string | Authentication credentials, e.g. Bearer <token>. |
Request body
| Name | Type | Description |
|---|---|---|
| domainrequired | string | Domain name associated with the resource. |
| id | string | null | Unique identifier of the resource. |
| namerequired | string | Display name of the resource. |
| shareId | string | null | Identifier used to access a shared resource. |
| teamId | string | null | ID of the associated team. |
Example request
Responses
200Website created.
| Name | Type | Description |
|---|---|---|
| createdAtrequired | string | null | Date and time the record was created. |
| createdByrequired | string | null | ID of the user who created the resource. |
| deletedAtrequired | string | null | Date and time the record was deleted, if applicable. |
| domainrequired | string | null | Domain name associated with the resource. |
| idrequired | string | Unique identifier of the resource. |
| namerequired | string | Display name of the resource. |
| recorderEnabledrequired | boolean | Whether recording is enabled for the website. |
| replayConfigrequired | anyOf | Session replay and heatmap recording configuration. |
| resetAtrequired | string | null | Date and time the website analytics were last reset. |
| shareIdrequired | string | null | Identifier used to access a shared resource. |
| teamIdrequired | string | null | ID of the associated team. |
| updatedAtrequired | string | null | Date and time the record was last updated. |
| user | object | |
| userIdrequired | string | null | ID of the associated user. |
200 example
400Bad request.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
400 example
401Unauthorized.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
401 example
Code samples
cURL