Overview of an API request
Each endpoint has a specific list of attributes that contain values, some
shared and some unique, that may be searched against using the API version 3
search request. To receive the list of attributes for an endpoint, write a
simple API version 3 request. An API version 3 request for endpoint attributes
only requires three basic pieces of information: base url, endpoint, and API
key.
Note
A single user cannot make API requests more than 20 times per second and 1,000 per minute.
All users on a Connect subscription cannot make more than 200 requests per second
and 10,000 per minute.
- Base URL
- The base URL is the same regardless of the specific API request that
is made. To determine what your base URL should be, simply copy the URL that
you use to log into
Minitab Connect.
For example, if you use
https://connect.minitab.com
to access
Minitab Connect,
then the base URL for all your API requests is:
https://connect.minitab.com/api/3/
.
- Endpoint
- Represents the object or collection of objects that the request is
intended to interact with. In the above example, the endpoint in the 'Example
API Request' is 'Source'. This will limit what can be done with the API request
to Actions that are specifically designed to manipulate 'Source' data objects.
For example, the endpoint in
https:
//connect.minitab.com/Source/?apikey=12478781287471824&action=search&arg=[{"name":"Campaigns"}]
is 'Source'. This will limit what can be done with the API request to actions
that are specifically designed to manipulate 'Source' data objects.
- Endpoint GUID
- The endpoint GUID is a unique identifier that represents a specific
data object within
Minitab Connect.
The GUID consists of a unique string of characters and is sometimes referred to
as a 'Key'. To find the GUID in
Minitab Connect,
open the
Edit
modal for the desired object. The endpoint GUID is not required for all API
requests. For example, an API request that performs a search action omits the
endpoint GUID.
- API key
- This part of the API Request informs the system that the request
should be processed with the same permissions as the specified user. This will
always be represented by a GUID. An API key is a unique string of characters
that is associated with a specific user of
Minitab Connect.
To find your GUID, first log into the system. Next, open theUser Menu
button
in the top right and
select
Account Settings.
A list of available API keys is listed with the ability to generate new ones.
(In this example, a dummy API key is used for security purposes)
- Authentication
- Informs the system that the request should be processed with the
same permissions as the specified user. Authentication is represented by an API
Key. An API Key is a unique string of characters that is created to give access
to a feature in the tool. To create an API key, open theUser Menu
button
in the top right and
select
Account Settings.
For more information, go to
Generate an API token.
- Action
- Specifies what actions to take for the specified endpoint. Actions
are usually categorized as follows:
- Getters: Getter actions are used to extract data out of
the system. Each endpoint has a unique set of getters. To use a getter, the
correct format is:
action=<nameOfGetter>
where
<nameOfGetter>
is replaced by the name of
the desired getter.
- Setters: Setter actions are used to import data into the
system and to set or change properties of a data object. Each endpoint has a
unique set of setters. To use a setter, the correct format is:
action=<nameOfSetter>&arg=<valueToSet>
where
<nameOfSetter>
is replaced by the name of
the desired setter and
<valueToSet>
is the value to be set.
- Actions: Actions are used for processes, features, or
commands of a data object that do not meet the characteristics of a getter. One
example of an action is to add fields to a table. Each action has different
requirements. For example, some actions do not require any arguments and are
formatted in the same way as a getter. Other actions require that arguments are
formatted like a setter.
- Searches: Searches are used to obtain data from an
endpoint that meets a specific set of parameters. Searches can have an infinite
number of search terms and are formatted as an array. For example:
action=search&args=[{"fname":"John","lname":"Smith"}]
would only return records where [
"fname"
(first name) is
"John"
AND
"lname"
(last name) is
"Smith"
. You can use any number of search terms as
long as they fit the key:value structure and are separated by commas.
Note
When adding the values to the API search request, text
strings must be inside quotes.
You can make an API request that contains multiple actions. To do
so, separate each action with an ampersand ('&'). For example, you need to
change the first name, middle name and last name of a user that has an ID of
15. The request looks like this:
https://connect.minitab.com/api/3/User/15?apikey=45a3d34982e&action0=setFName&arg0=John&action1=setMName&arg1=D&action2=setLName&arg2=Smith
This request sets the First Name equal to
"John"
, the Middle Name equal to
"D"
and the Last Name equal to
"Smith"
on the User that has an ID of
15
.
Note
When using multiple actions in a single API request, the action
must be incremented. The first action and argument can be appended with a 0 or
1. Each additional action grouping must increment by a factor of 1.
API request to return all actions for an endpoint
At any point an API request can be made that will return a list of all
actions available to a specific endpoint . The request is as follows:
https://connect.minitab.com/api/3/[endpoint]/?apikey=[apikey]
Replace the
endpoint
with the specific endpoint and
apikey
with an actual API key. A JSON object will be
returned that contains all actions for the endpoint as well as all attributes.
Current endpoints and descriptions
At any point, you can make an API request that will return a list of all
endpoints. The request is as follows:
https://connect.minitab.com/api/3/?apikey=[apikey]
Replace the
apikey
with an actual API key. A JSON object will be
returned that contains a list of all available endpoints. The available
endpoints at this time are as follows:
- AutoImportConf
- Create, read, and interact with Auto Import Configurations (defined
as Auto Import Wizard within
Minitab Connect).
- Blob
- Store and retrieve files that are stored as the 'file' field type
within
Minitab Connect.
- BusinessRule
- Create, view, and interact with business rules.
- BusinessRuleGroup
- Create, view, and interact with business rule groups.
- BusinessRuleTrigger
- Allows the API request to create new business rule triggers or read,
modify, delete or execute existing business rule triggers.
- Connection
- Allows the API request to create new connections or read, modify, or
delete existing connections.
- Customer
- Allows the API request to create new customers or read, modify, or
delete existing customers.
- Dashboard
- Allows the API request to create new dashboards or read, modify, or
delete existing dashboards.
- DashboardElement
- Allows the API request to create new dashboard elements. Also permits
reading, modifying or deleting existing dashboards elements.
- ErrorLog
- Read the error logs.
- FieldFormat
- Allows the API request to interact with system-defined field formats.
For example, a text field can have a URL format.
- FieldType
- Allows the API request to create new custom fields or read, modify,
or delete existing custom fields.
- FieldTypeTrigger
- Allows the API request to create new field type triggers or read,
modify, delete, or execute existing field type triggers.
- FileImporterLocations
- Create new or read/interact with the locations that the file import
scheduler uses.
- Flow
- Allows interaction with flows. You can create, modify, and delete
Flows. You can retrieve flow data and manually execute flows via the version 3
API.
- Form
- Create new forms, modify or delete existing forms. You can retrieve
form data via the API.
- FormElement
- Allows the API request to create new form elements. Also permits
reading, modifying, or deleting existing form elements.
- Job
- Create new jobs.
- KVStore
- For key-value storage. The endpoint allows creating, modifying,
reading, or deleting key-value pairs.
- Mashup
- For internal system use.
- PerformanceLog
- Read the performance logs.
- Plugin
- Allows the API request to modify an existing plugin and read plugin
data (including listing available plugins).
- ProfileLog
- Read the history of the profiler.
- SavedAPI
- Controls saved exports.
- Source
- Interact with sources (tables). New tables can be created. Existing
tables can be modified, read or deleted.
- SourceChart
- Create, read, modify, or delete charts.
- SourceConditional
- Create, modify, or delete the conditional formatting of tables.
- SourceConnection
- Read or modify source connections that are tied to a table.
- SourceExportOption
- Create, read, and interact with stored export connector settings.
- SourceField
- Create, modify or delete table fields.
- SourceInterface
- Interact with table data. Insert, update, delete, export, read rows
of data.
- SourceJoin
- Work with joins. This corresponds to the "add join" dialog when
creating/editing a mashup table. Each item created there is a single "join"
with its own unique ID.
- SourceNote
- Create, read, modify, or delete table notes.
- SourceProfile
- Create, read, or interact with the profiles that are created by the
profiler.
- SourceStatsLog
- Read the historical statistics (size, records, etc.) of a table.
- SourceTemplate
- Create, read, or modify table templates.
- SourceType
- Interact with folders. New folders can be created. Existing folders
can be modified, read or deleted.
- SourceView
- Interact with views. New views can be created. Existing views can be
modified, read, or deleted.
- Stats
- Create, read, modify, or delete customer statistics.
- Theme
- Create, read, modify, or delete themes. (Forms, Dashboards, UI).
- TreeInfo
- Used internally by the tree importer. System use only.
- User
- Interact with users. Allows the API request to create, read, modify,
or delete users.
- UserType
- Create, read, modify, or delete user groups for system governance.
- VersionControl
- Create or modify HBase version control settings for a table. This
endpoint also contains the methods for pushing data to and pulling data from
HBase.
- Workspace
- Interact with collections (previously known as workspaces). Allows an
API request to create, read, modify, or delete collections.
- WorkspaceElement
- Create, read, modify, or delete elements, such as tables, forms, and
dashboards, within a collection.