Note:
Before using these API endpoints, learn more about how to use WixHive activities in your app.
Activities will be returned in descending order from the most recent Activity. The Activities by default are for the site the application is installed on, determined by the application-id and instance-id parameters/headers. Optionally results can be restricted to activities created by the current application. Results are returned in cursored form, and can be filtered by date ranges.
Parameters:
Name | Data Type | Parameter Type | Description |
---|---|---|---|
activityTypes | String | Query | The activity types to filter against. Multiple activity types are seperated by a comma |
until | Datetime | Query | The ending date for activities we want to return, as an ISO 8601 timestamp. This field is only relevant when a cursor is not present. |
from | Datetime | Query | The beginning date for activities we want to return, as an ISO 8601 timestamp. This field is only relevant when a cursor is not present. |
scope | 'site', 'app' | Query | The scope of the results to return, either for the entire site or limited to the current application. By default, all activities for the site will be returned |
cursor | String | Query | The semi-optional cursor into the desired data. This cursor will expire after 30 minutes, it should not be cached. |
pageSize | Integer (1-500) | Query | The number of results to return per page of data. Defaults to 25. |
version (required) | Integer | Query | The specific version of this endpoint. This version uses semantic versioning, in the form of major.minor.path |
application-id (required) | String | Query/ Header | The application definition ID. If sent through the header, this field must be prefixed with x-wix- |
instance-id (required) | String | Query/ Header | The instance ID used for security validation with Wix. If sent through the header, this field must be prefixed with x-wix- |
signature (required) | String | Query/ Header | The computed signature. If sent through the header, this field must be prefixed with x-wix- |
timestamp (required) | Datetime | Query/ Header | The timestamp as an ISO 8601 timestamp. If sent through the header, this field must be prefixed with x-wix- |
Example:
Response:
Here’s the full list of fields that can be part of the response.
The fields you’ll actually receive depend on the information you request and what we have in the system.
Name | Type | Description |
---|---|---|
pageSize | Integer (1-500) | Number of results returned per cursor |
previousCursor | String | The cursor used to access the previous set of activities. null will be returned if there are no previous results |
nextCursor | String | The cursor used to access the next set of activities. null will be returned if there are no more results |
results | Array[Object] | Array of Activity items |
results.id | String | Activity ID |
results.createdAt | Datetime | Timestamp indicating when this activity was created, as an ISO 8601 timestamp |
results.activityType | String (see list of activity types) | Type of activity performed |
results.activityLocationUrl | String | URL where the activity was performed |
results.activityDetails | Object | Relevant information about this activity to display in the Dashboard |
results.activityDetails.additionalInfoUrl | String | URL linking to more specific contextual information about the activity for use in the Dashboard |
results.activityDetails.summary | String | A short description about the activity for use in the Dashboard |
results.activityInfo | Object | Activity specific information related to this type of activity. This field must adhere to the schema specified by the activity type. |
Errors:
Here’s a list of possible error codes and when they occur. Read more about our API errors.
HTTP Status Code | Reason/Error Message |
---|---|
400 | * Bad request. 'from' and 'until' fields are only valid when a cursor is not present. * Bad request. Unknown scope parameter value. * Invalid pageSize. Valid values are 25, 50 or 100. * Invalid or missing cursor. * Bad authentication credentials. * Bad request. Authentication credentials may be missing. * Missing endpoint version number. |
403 | * Unauthorized. Your app has been removed from the site. * Unauthorized. Insufficient permissions. |
404 | * Activity Type not found. * App is not found on site. * Endpoint version number does not exist. |
408 | Timestamp expired on the request, please submit again with a new timestamp. |
410 | Cursor expired. The cursor is no longer valid. Please query again. |
Returns an activity referenced by its ID, only relevant for the given site determined by the application-id and instance-id parameters/headers.
Name | Data Type | Parameter Type | Description |
---|---|---|---|
activityId (required) | String | Path | The activity to get |
version (required) | Integer | Query | The specific version of this endpoint. This version uses semantic versioning, in the form of major.minor.path |
application-id (required) | String | Query/ Header | The application definition ID. If sent through the header, this field must be prefixed with x-wix- |
instance-id (required) | String | Query/ Header | The instance ID used for security validation with Wix. If sent through the header, this field must be prefixed with x-wix- |
signature (required) | String | Query/ Header | The computed signature. If sent through the header, this field must be prefixed with x-wix- |
timestamp (required) | Datetime | Query/ Header | The timestamp as an ISO 8601 timestamp. If sent through the header, this field must be prefixed with x-wix- |
Example:
Response:
Here’s the full list of fields that can be part of the response.
The fields you’ll actually receive depend on the information you request and what we have in the system.
Name | Type | Description |
---|---|---|
id | String | Activity ID |
createdAt | Datetime | Timestamp indicating when this activity was created, as an ISO 8601 timestamp |
activityType | String (see list of activity types) | Type of activity performed |
activityLocationUrl | String | URL where the activity was performed |
activityDetails | Object | Relevant information about this activity to display in the Dashboard |
activityDetails.additionalInfoUrl | String | URL linking to more specific contextual information about the activity for use in the Dashboard |
activityDetails.summary | String | A short description about the activity for use in the Dashboard |
activityInfo | Object | Activity specific information related to this type of activity. This field must adhere to the schema specified by the activity type. |
Errors:
Here’s a list of possible error codes and when they occur. Read more about our API errors.
HTTP Status Code | Reason/Error Message |
---|---|
400 | * Bad authentication credentials. * Bad request. Authentication credentials may be missing. * Missing endpoint version number. |
403 | * Unauthorized. Your app has been removed from the site. * Unauthorized. Insufficient permissions. |
404 | * Activity not found, or site for instance-id and app-id does not exist. * App is not found on site. * Endpoint version number does not exist. |
408 | Timestamp expired on the request, please submit again with a new timestamp. |
Returns a list of Activity types that are currently supported by Wix. Each Activity type has an associated schema that data must conform to when posting Activities to Wix.
Parameters:
Name | Data Type | Parameter Type | Description |
---|---|---|---|
version (required) | Integer | Query | The specific version of this endpoint. This version uses semantic versioning, in the form of major.minor.path |
application-id (required) | String | Query/header | The application definition ID. If sent through the header, this field must be prefixed with x-wix- |
instance-id (required) | String | Query/header | The instance ID used for security validation with Wix. If sent through the header, this field must be prefixed with x-wix- |
signature (required) | String | Query/header | The computed signature. If sent through the header, this field must be prefixed with x-wix- |
timestamp (required) | Datetime | Query/header | The timestamp as an ISO 8601 timestamp. If sent through the header, this field must be prefixed with x-wix- |
Example:
Response:
Name | Type | Description |
---|---|---|
types | Array[String] | An array of activity types currently supported by Wix |
Activity types:
Errors:
Here’s a list of possible error codes and when they occur. Read more about our API errors.
HTTP Status Code | Reason/Error Message |
---|---|
400 | * Bad authentication credentials. * Bad request. Authentication credentials may be missing. * Missing endpoint version number. |
403 | * Unauthorized. Your app has been removed from the site. * Unauthorized. Insufficient permissions. |
404 | * App is not found on site. * Endpoint version number does not exist. |
408 | Timestamp expired on the request, please submit again with a new timestamp. |
410 | Cursor expired. The cursor is no longer valid. Please query again. |
Returns the activity stream for a given contact, referenced by the contact’s unique ID. Activities will be returned in descending order from the most recent activity, in cursored form, and can be filtered by date ranges.
Parameters:
Name | Data Type | Parameter Type | Description |
---|---|---|---|
contactId (required) | String | Path | ID of the contact's stream to fetch |
activityTypes | String (see list of activity types) | Query | The activity types to filter against. Multiple activity types are separated by a comma. |
until | Datetime | Query | The ending date for activities we want to return, as an ISO 8601 timestamp. This field is only relevant when a cursor is not present. |
from | Datetime | Query | The beginning date for activities we want to return, as an ISO 8601 timestamp. This field is only relevant when a cursor is not present |
scope | 'site', 'app' | Query | The scope of the results to return, either for the entire site or limited to the current application. By default, all activities for the site will be returned |
cursor | String | Query | The semi-optional cursor into the desired data. This cursor will expire after 30 minutes, it should not be cached. |
pageSize | Integer (1-500) | Query | The number of results to return per page of data. Defaults to 25. |
version (required) | Integer | Query | The specific version of this endpoint. This version uses semantic versioning, in the form of major.minor.path |
application-id (required) | String | Query/header | The application definition ID. If sent through the header, this field must be prefixed with x-wix- |
instance-id (required) | String | Query/header | The instance ID used for security validation with Wix. If sent through the header, this field must be prefixed with x-wix- |
signature (required) | String | Query/header | The computed signature. If sent through the header, this field must be prefixed with x-wix- |
timestamp (required) | Datetime | Query/header | The timestamp as an ISO 8601 timestamp. If sent through the header, this field must be prefixed with x-wix- |
Example:
Response:
Here’s the full list of fields that can be part of the response.
The fields you’ll actually receive depend on the information you request and what we have in the system.
Name | Type | Description |
---|---|---|
pageSize | Integer (1-500) | Number of results returned per cursor |
previousCursor | String | The cursor used to access the previous set of activities. null will be returned if there are no previous results |
nextCursor | String | The cursor used to access the next set of activities. null will be returned if there are no more results |
results | Array[Object] | Array of Activity items |
results.id | String | Activity ID |
results.createdAt | Datetime | Timestamp indicating when this activity was created, as an ISO 8601 timestamp |
results.activityType | String (see list of activity types) | Type of activity performed |
results.activityLocationUrl | String | URL where the activity was performed |
results.activityDetails | Object | Relevant information about this activity to display in the Dashboard |
results.activityDetails.additionalInfoUrl | String | URL linking to more specific contextual information about the activity for use in the Dashboard |
results.activityDetails.summary | String | A short description about the activity for use in the Dashboard |
results.activityInfo | Object | Activity specific information related to this type of activity. This field must adhere to the schema specified by the activity type. |
Errors:
Here’s a list of possible error codes and when they occur. Read more about our API errors.
HTTP Status Code | Reason/Error Message |
---|---|
400 | * Bad request. 'from' and 'until' fields are only valid when a cursor is not present. * Bad request. Unknown scope parameter value. * Invalid pageSize. Valid values are 25, 50 or 100.* Invalid or missing cursor. * Bad authentication credentials. * Bad request. Authentication credentials may be missing. * Missing endpoint version number. |
403 | * Unauthorized. Your app has been removed from the site. * Unauthorized. Insufficient permissions. |
404 | * Contact not found. * Activity Type not found. * App is not found on site. * Endpoint version number does not exist. |
408 | Timestamp expired on the request, please submit again with a new timestamp. |
410 | Cursor expired. The cursor is no longer valid. Please query again. |
This endpoint creates an activity of a given activity type, adding the activity directly to the specific contact. These activity objects are then viewable in the site owner’s dashboard. Each activity conforms to a specific schema predefined by Wix. When the activity is successfully created, the ID of the activity will be returned. If schema validation fails, or other errors occur, an error will be returned by this endpoint.
Parameters:
Name | Data Type | Parameter Type | Description |
---|---|---|---|
contactId (required) | String | Path | ID of the contact to edit |
version (required) | Integer | Query | The specific version of this endpoint. This version uses semantic versioning, in the form of major.minor.path |
application-id (required) | String | Query/header | The application definition ID. If sent through the header, this field must be prefixed with x-wix- |
instance-id (required) | String | Query/header | The instance ID used for security validation with Wix. If sent through the header, this field must be prefixed with x-wix- |
signature (required) | String | Query/header | The computed signature. If sent through the header, this field must be prefixed with x-wix- |
timestamp (required) | Datetime | Query/header | The timestamp as an ISO 8601 timestamp. If sent through the header, this field must be prefixed with x-wix- |
activity (required) | Object | Body | The activity to create |
activity.createdAt (required) | Datetime | Body | Timestamp indicating when this activity was created, as an ISO 8601 timestamp |
activity.activityType (required) | String (see list of activity types) | Body | Type of activity performed |
activity.activityLocationUrl | String | Body | URL where the activity was performed |
activity.activityDetails | Object | Body | Relevant information about this activity to display in the Dashboard |
activity.activityDetails.additionalInfoUrl (required) | String | Body | URL linking to more specific contextual information about the activity for use in the Dashboard |
activity.activityDetails.summary (required) | String | Body | A short description about the activity for use in the Dashboard |
activity.activityInfo (required) | Object | Body | Activity specific information related to this type of activity. This field must adhere to the schema specified by the activity type. |
Example:
Response:
Name | Type | Description |
---|---|---|
activityId | String | Activity ID |
contactId | String | Contact ID |
Errors:
Here’s a list of possible error codes and when they occur. Read more about our API errors.
HTTP Status Code | Reason/Error Message |
---|---|
400 | * Activity is missing required information. * Bad authentication credentials. * Bad request. Authentication credentials may be missing. * Missing endpoint version number. |
403 | * Unauthorized. Your app has been removed from the site. * Unauthorized. Insufficient permissions. |
404 | * Contact not found. * App is not found on site. * Endpoint version number does not exist. |
408 | Timestamp expired on the request, please submit again with a new timestamp. |