Get Started with Visier APIs
Everything you need to know to get started with Visier's suite of public APIs.
Overview
Make your first request with Visier APIs. Visier APIs make requests and return data based on your production environment in Visier unless otherwise specified.
Visier reserves the right to, without notice and at its sole discretion, add new elements to API responses. Authorized users who call Visier's APIs must set their JSON parsers to not fail on unknown properties or risk being unable to interpret such API's result set.
Get a Visier account
To use the APIs, you must have a Visier account with a profile that has the API capability. If you don't have an account, contact your administrator. They will create an account for you with permissions that allow you to view data.
Generate your API key and security token
To make an API request, you will need an API key and a security token. For more information about how to get an API key and request a security token, see API Authentication.
Note: If using Postman to send requests, you can request a security token directly in the tool, see Use Postman to Call Visier APIs.
Choose your tool
To use Visier APIs, you need to choose a tool to make your first request. This can be Postman or whichever method you usually use to make HTTP requests. For more information about using Postman for your first request, see Use Postman to Call Visier APIs.
Make your first request
To test that you have everything set up correctly, we'll create a request to retrieve all the users in your Visier solution using the /v1/admin/users endpoint.
Replace {vanity_name} with your tenant name. The API key is expected as a header, while the security token is expected as a cookie.
Tip:
To find your vanity name:
- In Visier, in the global workspace, click Settings > Single Sign-On.
- Under Single Sign-On, find your service provider endpoint; for example, https://jupiter.visier.com/VServer/auth. In this example, jupiter is the vanity name.
curl -X GET --url 'https://{vanity_name}.api.visier.io/v1/admin/users' \
-H 'apikey:{api_key}' \
-H 'Cookie:VisierASIDToken={security_token}'
If everything was set up correctly and the request was successful, you should see a similar response:
{
"users": [
{
"userId": "02393fdc-3b43-9648-b042-a589a781a9d0",
"username": "john@jupiter.com",
"displayName": "Test User 000",
"accountEnabled": true,
"employeeId": "",
"email": "john@jupiter.com",
"lastLogin": {
"timestamp": "1633121685629"
},
},
{
"userId": "72a6c22e-76be-a24a-92f7-7cbbed16fd58",
"username": "richard@jupiter.com",
"displayName": "Integration Test User 002",
"accountEnabled": true,
"employeeId": "",
"email": "richard@jupiter.com"
}
]
}
Next steps
Now that you've successfully authenticated and completed your first API request, you can call more Visier APIs!
For detailed reference documentation, see:
- Data In API Reference
- Data Out API Reference
- Administration API Reference
- Analytic Model API Reference
API references
The following screenshots show you how to read a Visier API reference.
- Endpoint title: An action statement about what the API endpoint does.
- Method and URL: The action and URL associated with the API endpoint. Visier APIs use GET, POST, PUT, PATCH, and DELETE methods. The URL shown in the API reference is a shortened version of the full API URL; for example, /v1/data/model/analytic-objects/{objectId}/properties is short for https://{vanity-name}.api.visier.io/v1/data/model/analytic-objects/{objectId}/properties.
- Description: A description about what you can do with the API endpoint.
- Parameters: The parameters that you can set in the API request.
- Name: The name of a parameter; for example, objectId is a parameter you can set in your API request.
- Description: A description about what the parameter defines in the API request.
- Type: The data type of the parameter, such as string, integer, or Boolean.
- Location: Where to specify the parameter.
- A URL parameter is specified in the endpoint URL; for example, in the URL /v1/data/model/analytic-objects/{objectId}/properties, objectId is a parameter that you specify in the URL, such as /v1/data/model/analytic-objects/Employee/properties.
- A query parameter is specified in the URL after a ? as a key-value pair; for example, the id query parameter is defined in a URL as /v1/admin/users/Employee/properties?id=Job_Code&id=Birth_Date.
- Show/Close: Expands or collapses the API endpoint.
- Copy: Copies the URL to your clipboard.
- Request body: The fields that you can specify in the body of an API request.
- Example Value | Schema: An example of the request body fields and the schema for the fields. If you click Example Value, you can see the request body fields in JSON format. If you click Schema, you can see a list of all available request body fields and their descriptions.
- Request body fields: In the Schema tab, view the available request body fields, their data types, and their descriptions.
- Responses: The potential response to your API call, including all possible response fields in Example Value | Schema.
- Code: The response status code.
- Description: The response description.
- Media Type: The response format.
- Links: Any links to other API endpoints.