Download OpenAPI specification:Download
This reference helps you implement the RESTful Whatfix API v1. This API uses a JSON format for output and is capable of handling CORS (Cross-Origin Resource Sharing) requests. The API is stateless – all requests are validated against an API token. The API token can be obtained manually from the Whatfix app.
While some endpoints do not require authentication, most will require you to be authenticated. To get authenticated you will need to create an user API token from the Whatfix dashboard and pass as header x-whatfix-integration-key. To know more, see Generating the API Integration Key. Pass the email address of the user as the x-whatfix-user header.
curl -X GET 'https://api.whatfix.com/v1/accounts/c5eerfd0-db6f-11e9-a037-d43b0489acab/content'
-H 'x-whatfix-integration-key: 9255925e-3e26-4e31-ba77-b680dbf3ba4e'
-H 'x-whatfix-user: [email protected]'
-H 'Content-Type: application/json'
This is how POST requests look like:
curl -X POST 'https://api.whatfix.com/v1/accounts/c5eerfd0-db6f-11e9-a037-d43b0489acab/content'
-H 'Content-Type: application/json'
-H 'x-whatfix-integration-key: 9255925e-3e26-4e31-ba77-b680dbf3ba4e'
-H 'x-whatfix-user: [email protected]'
-d '[{ "title": "Wikipedia Home Page", "url": "https://www.wikipedia.org/", "type": "link" }]'
The following status codes are possible in Whatfix API Responses. In general
200 - OK: Returned for GET and PUT when the request is processed on the server and a payload is returned.
201 - Created: Returned for POST and PUT requests when a new object is created
204 - No Content: Returned for DELETE requests when resource is deleted.
207 - Multistatus: Returned for POST/PUT/DELETE requests on partial success. Detailed information of success and failure objects are provided in the response.
400 - Bad Request: Returned for any request if the API format is incorrect or if any query parameters do not comply with the requested resource.
401 - Unauthorized: Returned for any request if the Whatfix integration key is not valid.
403 - Forbidden: Returned for any request if the Whatfix integration key does not have permission for the requested resource. For example, requesting data for an account that cannot be accessed using the integration key.
404 – Not Found: Returned for GET and DELETE requests when no content is found for the requested resource ID.
429 - Too Many Requests: Returned if the permitted rate limit for the account is exceeded.
500, 502, 503, 504 - Server Errors: Returned for any requests if there are server-side errors. Request may succeed on retry.
Pagination is performed by the use of 2 filters: cursor and limit
cursor is a pointer to a specific row of data.
limit specifies the maximum data to return in the result.
Update content. This API can be called from integration scripts
accountId
required
|
string
account ID |
array of content
description |
string
Description for link type content only |
description_md |
string
Description for text type content only |
id |
string
ID of the content. Only needed for the update operation. |
source |
string
Source of the link content. It can be 'default' or 'knowledgebase'. |
tags |
Array of strings
Tags name associated with the content. |
title |
string
Title of the content. |
type |
string
Type of the content. Example 'text' or 'link' or 'video'. |
url |
string
|
[- {
- "description": "string",
- "description_md": "string",
- "id": "string",
- "source": "string",
- "tags": [
- "string"
], - "title": "string",
- "type": "string",
- "url": "string"
}
]
Create a static content namely links, videos and text by ID. This API can be called from integration scripts
accountId
required
|
string
account ID |
array of content
description |
string
Description for link type content only |
description_md |
string
Description for text type content only |
id |
string
ID of the content. Only needed for the update operation. |
source |
string
Source of the link content. It can be 'default' or 'knowledgebase'. |
tags |
Array of strings
Tags name associated with the content. |
title |
string
Title of the content. |
type |
string
Type of the content. Example 'text' or 'link' or 'video'. |
url |
string
|
[- {
- "description": "string",
- "description_md": "string",
- "id": "string",
- "source": "string",
- "tags": [
- "string"
], - "title": "string",
- "type": "string",
- "url": "string"
}
]
Get all content created after fromTime (paginated). This API can be called from integration scripts
accountId
required
|
string
account ID |
cursor |
string
cursor for next page |
fromTime
required
|
integer <int64>
fromTime in milliseconds |
limit |
integer <int32>
Default: 10
content limit per page |
type |
string
Example: type=flow
content type |
Get all content updated after fromTime (paginated). This API can be called from integration scripts
accountId
required
|
string
account ID |
cursor |
string
cursor for next page |
fromTime
required
|
integer <int64>
fromTime in milliseconds |
limit |
integer <int32>
Default: 10
content limit per page |
type |
string
Example: type=flow
content type |
Copy contents, widgets, and folders from one account to another. To successfully perform this operation, ensure that the user has access to both the source and destination accounts. This request is asynchronous in nature, i.e. the API’s response will only carry a Job ID that can be used to track the request later. Once the request is complete, an email will be sent to the user who initiated the request.
accountId
required
|
string
Enterprise account ID |
request
destinationAccountId |
string
Account Id of the destination ent. |
destinationUserId |
string
Account Id of the destination user. |
contentIds |
Array of strings
Comma seperated ids of contents/folders/widgets to be copied |
copyUserTags |
boolean
Copy tags associated with the contents |
{- "destinationAccountId": "string",
- "destinationUserId": "string",
- "contentIds": [
- "string"
], - "copyUserTags": true
}
{- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "message": "string"
}
Content Tag resource API returns information about all available tags.
You can create tag, update tag's name and description, delete tag in bulk. A tag created will be of 'User' tag type. Updation and deletion can be done to any tag type (user, page or role tag).
Add/Update one or more content tags. Updation of only tag 'name' and 'description' are supported.
accountId
required
|
string
account ID |
array of tags
description |
string
Description of the tag. |
name
required
|
string
Name of the tag. This must be unique across all tags. |
newName |
string
New name to be updated for existing tag. This must be unique across all tags. |
[- {
- "description": "string",
- "name": "string",
- "newName": "string"
}
]
Uploads pdf file to Azure Blob. It should be called from integration.
accountId
required
|
string
account ID |
filename
required
|
string
filename |
flowId
required
|
string
flow ID |
timestamp
required
|
integer <int64>
timestamp |
version
required
|
integer <int64>
version |
Fetches list of files uploaded to Azure Blob. It should be called from integration.
accountId
required
|
string
account ID |
contentType
required
|
string
content Type |
cursor |
string
cursor for next page |
fromTime |
integer <int64>
Default: 1
from time |
limit |
integer <int32>
Default: 50
content limit per page |
APIs for end user schema.
Allowed data types are following:
Get end user schema. Called from integrations UI. Returns schema of the end users resource for the account. The schema contains both Whatfix-provided default fields as well custom fields defined by the Account user.
entId
required
|
string
account ID |
fieldName
required
|
string
fieldName |
Updates or adds one or more custom fields in the end user schema. Field names are unique and are used to identify the fields that are required to be updated. A maximum of 50 custom fields can be added to the user schema for each account. Called from integrations UI on the dashboard.
entId
required
|
string
account ID |
array of end user schema
description |
string
Explanation of the field’s purpose. |
name |
string
Name of the field. |
type |
string
Data type of the field. |
[- {
- "description": "string",
- "name": "string",
- "type": "string"
}
]
End Users resource API returns the list of end users of the account.
An end user is anyone who engages with Whatfix content on the parent application. The user is identified via one of the following methods:
A unique id passed by the application
A unique id detected by Whatfix on known applications such as Salesforce
A unique cookie set on the user’s browser
The method of user identification must be set in the account. The same ID must be used while specifying the user Id in the API requests. If the detection method is not set, it defaults to the unique cookie method. Apis are used for end user segmentation.
Update or add end users details. This API is calledfrom integration scripts to update end users.
accountId
required
|
string
account ID |
array of end user
creationTime |
integer <int64>
Timestamp of creation of the record. |
custom |
object
Custom fields defined in the user schema. |
id |
string
ID of the user. |
lastUpdateTime |
integer <int64>
Timestamp of last updation of the record. |
object
|
|
object
UserAction id vs count map |
[- {
- "creationTime": 0,
- "custom": { },
- "id": "string",
- "lastUpdateTime": 0,
- "userActionCount": {
- "property1": 0,
- "property2": 0
}, - "userActions": {
- "property1": 0,
- "property2": 0
}
}
]
This API fetches the details of enduser based on id. This API is called from third party applications for segmentation
accountId
required
|
string
account ID |
Search parameters for end user
fields |
Array of strings
fields to fetch:[custom,useraction] |
id
required
|
string
ID of the user. |
useridType |
string
user id type:wfx-cookie-user-id/wfx-app-user-id |
{- "fields": [
- "string"
], - "id": "string",
- "useridType": "string"
}
{- "creationTime": 0,
- "custom": { },
- "id": "string",
- "lastUpdateTime": 0,
- "userActionCount": {
- "property1": 0,
- "property2": 0
}, - "userActions": {
- "property1": 0,
- "property2": 0
}
}
This API fetches the custom and useraction field if an enduser based on id. This API is called from third party applications for segmentation.
accountId
required
|
string
account ID |
id
required
|
string
id |
fields |
Array of strings
fields to fetch:[custom,useraction] |
userid-type |
string
user id type:wfx-cookie-user-id/wfx-app-user-id |
Update or add an end user.This API is called from integrations to update the end users.
accountId
required
|
string
accountId |
id
required
|
string
id |
customObjects
{ }
{- "errors": [
- "string"
], - "id": "string",
- "statusCode": 0
}
Fetch personalized content order for a segment.
accountId
required
|
string
account ID |
id
required
|
string
id |
segmentId
required
|
string
segmentId |
userIdSrc |
string
userIdSrc |
APIs for Enterprise Integration Attribute Schema.
Allowed data types are following:
Returns schema of the Enterprise Integration Attributes resource for the account.It is called from the schema creation tab in integrations. Called from integrations dashboard.
attributeName
required
|
string
attributeName |
entId
required
|
string
account ID |
Updates or adds one or more attributes in the Enterprise integration attributes schema. Attribute names are unique and are used to identify the fields that are required to be updated.A maximum of 50 attributes can be added to the schema for each account.Only description can be modified for existing attribute schema. Called from integrations dashboard.
entId
required
|
string
account ID |
array of enterprise integration attribute schema
description |
string
Explanation of the field’s purpose. |
name |
string
Name of the field. |
type |
string
Data type of the field. |
[- {
- "description": "string",
- "name": "string",
- "type": "string"
}
]
Get Enterprise integration attribute schema by attribute name.It is called from the schema creation tab in integrations. Called from integrations dashboard.
attributeName
required
|
string
attributeName |
entId
required
|
string
account ID |
API returns list of primary and secondary integration attributes belonging to Enterprise.
Update or add Enterprise integration attribute. This is called from integration scripts.
accountId
required
|
string
account ID |
array of end user
additionalAttributes |
object
Secondary attributes of a primary integration attribute |
attributeName
required
|
string
Name of the primary integration attribute |
lastUpdateTime |
integer <int64>
Timestamp of last updation of the record. |
lastUpdatedBy |
string
Id of user by whom record is last updated. |
[- {
- "additionalAttributes": { },
- "attributeName": "string",
- "lastUpdateTime": 0,
- "lastUpdatedBy": "string"
}
]
Deletes specific record with given primary attribute name and primary attribute value
accountId
required
|
string
account ID |
primaryAttrNameValue
required
|
string
Example: Department__wf__Engineering,CompanyId__wf__12345
comma-separated list of primary attribute name value pairs |
Search by given primary attributes. This API is called from 3rd party applications for segmentation.
accountId
required
|
string
accountId |
Map of primary attributes with comma-separated list of values
property name*
additional property
|
string
|
{- "property1": "string",
- "property2": "string"
}
Get enterprise integration attributes by primary attribute name. This API is called from 3rd party applications
accountId
required
|
string
accountId |
primaryAttrName
required
|
string
Example: PersonaName
primaryAttrName |
Invoked from Analytics tab of dashboard and returns a set of Engagement by end-users.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the number of times each flow is viewed over a defined time.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the number of queries served Self Help, number of times a Popup was shown to users, number of users initiated a task from Task List, number of times a flow was played, number of times a Smart Tip was shown to users, and number of times a beacon was shown to users.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of Dashboard and returns the list of Self Help content, the type of content and the number of views for the selected period of time.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the trend over each day as users search for content and the maximum number of queries served for that day in Self Help search.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the terms that are unsuccessful
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the terms that showed search results.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the terms that are successful
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
nvoked from Analytics tab of dashboard and returns the successful vs unsuccessful search results.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
nvoked from Analytics tab of dashboard and returns the terms that didn't get any search results.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the list of users and their individual task completion status.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab in dashboard and returns the number of times each guided popup has appeared and how many times the flow was played.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the number of times each popup has appeared and number of times it is clicked
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from Analytics tab of dashboard and returns the number of times each popup has appeared and number of times it is clicked by each user
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab in dashboard and returns the number of times each smart popup has appeared.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab in dashboard and returns how many times the flow was started and completed vs not completed.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
flowId
required
|
string
flowId |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab in dashboard and returns how many users found the flow useful against those who didn't find it useful. This data is collected from the feedback popup that appears after the successful completion of each flow.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
flowId
required
|
string
flowId |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab of dashboard and returns the feedback comments in verbatim given by the users. This data is collected from the feedback popup that appears after the successful completion of each flow.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
flowId
required
|
string
flowId |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab and returns the feedback comments with No in verbatim given by the users. This data is collected from the feedback popup that appears after the successful completion of each flow.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from analytics tab in dashboard and returns who has edited the flow and when.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
flowId
required
|
string
flowId |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics dashboard and returns how many dropped out at each step of the flow and how many didn’t complete the flow.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
flowId
required
|
string
flowId |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invokes from analytics tab in dashboard and returns the number of times the flows are played from each which widget (Self Help, Task List, Beacon, or Guided Popup).
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
flowId
required
|
string
flowId |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invokes from analytics tab in dashboard and returns the number of times each flow is played each day irrespective of the information whether it is completed or not.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
flowId
required
|
string
flowId |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab and returns flow completion details with user name
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab and returns how many times the flows were started and completed vs started and not completed.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab and returns flow failure details with user name
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab and returns how many users found the flow useful against those who didn't find it useful. This data is collected from the feedback popup that appears after the successful completion of each flow.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab and returns the feedback comments with Yes in verbatim given by the users. This data is collected from the feedback popup that appears after the successful completion of each flow.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab and returns the number of times the flow was exited by the user.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from analytics tab and returns the number of times the flows were played from each which widget (Self Help, Task List, Beacon, or Guided Popup).
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
It is invoked from the analytics tab and returns the number of times flows were played each day irrespective of the information whether it is completed or not.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the number of times each smart tip is played.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the number of times smart tips are played each day.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab of dashboard and returns the number of times each smart tip is played with user details
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from analytics dashboard and returns the number of users to whom each beacon has appeared and how many clicked it.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from dashboard and returns the user engagement summary with beacons.
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Invoked from Analytics tab, API to expose the User action details and Occurrence with respect to times it has been done
accountId
required
|
string
account ID |
endDate |
string
endDate |
excludeDomains |
Array of strings
excludeDomains |
format |
string
Report file format Supported file formats : csv, json |
includeDomains |
Array of strings
includeDomains |
startDate |
string
startDate |
Get audit logs with custom date range for an enterprise account.
API authentication token : It has configurable TTL. Please contact administrator for configuring it for your account.
API rate limiting is in place.
If start and end date both are not provided then API will return last 90 days logs by default.
If only start date is provided then API will return logs from given start date till yesterday midnight.
If only end date is provided then API will return last 90 days logs from given end date.
Start and end dates will be considered as per UTC time standard.
If userId is provided then API will return only particular user's audit logs or else all users logs.
Sample request to get audit logs by enterprise account ID -
curl -X POST 'https://api.whatfix.com/v1/accounts/c5eerfd0-db6f-11e9-a037-d43b0489acab/auditlogs'
-H 'x-whatfix-integration-key: 9255925e-3e26-4e31-ba77-b680dbf3ba4e'
-H 'x-whatfix-user: [email protected]'
-H 'Content-Type: application/json'
--data-raw '{
"startDate" : "2022-05-09 00:00",
"endDate" : "2022-06-30 23:59"
}'
Sample request to get audit logs of particular user of an enterprise account -
curl -X POST 'https://api.whatfix.com/v1/accounts/c5eerfd0-db6f-11e9-a037-d43b0489acab/auditlogs'
-H 'x-whatfix-integration-key: 9255925e-3e26-4e31-ba77-b680dbf3ba4e'
-H 'x-whatfix-user: [email protected]'
-H 'Content-Type: application/json'
--data-raw '{
"startDate" : "2022-05-09 00:00",
"endDate" : "2022-06-30 00:00",
"userId":"0bbcd1c0-87e0-11eb-aa6f-0242ec1e1851"
}'
Note : We have made API as POST to avoid caching of PII data in some framework due to GET method and to avoid very long query parameter string in URL for fetching audit logs with custom date range.
accountId
required
|
string
Enterprise account ID |
cursor |
string
Cursor value of next page of paginated response |
limit |
integer <int32>
Default: 100
Number of records per page of paginated response. Max limit per page : 500 |
request
startDate |
string
Start date (format YYYY-MM-DD HH:MM) of date range |
endDate |
string
End date (format YYYY-MM-DD HH:MM) of date range |
userId |
string
User ID of user for which you want to do filter logs by user |
{- "startDate": "2022-01-01 00:00",
- "endDate": "2022-01-01 00:00",
- "userId": "string"
}