To enable programmatic control over its objects, the supports a range of REST API endpoints across the objects in the platform. This section provides an overview of the API design, methods, and supported use cases.
Supported operations:
Uses:
<http/https>://<my_server>:<port_number>/<version>/<endpoint>/[resource_id]/[association][?args] |
Elements in square brackets [brackets]
are optional.
Element | Description | Example | |
---|---|---|---|
<http/https> | HTTP protocol identifier. The protocol should be | https | |
<my_server> | Name of the | wrangler.example.com | |
<port_number> | Port number over which you access the | 3005 | |
<version> | API version number.
| v3 | |
<endpoint> | Name of the API endpoint to use. | /connections | |
[resource_id] | Internal identifier for the specific resource requested from the endpoint. This value defines the object against which the requested operation is performed. | /10 | |
[association] | If applicable, the association identifiers the API endpoint that is requested using the context determined by the Associations can also be referenced by query parameter. See Embedding Associations below. | /jobGroups | |
[?args] | In some cases, arguments can be passed to the endpoint in the form of query parameters. | ?arg1=value1&arg2=value2 |
The following conventions apply to v4 and later versions of the APIs:
Parameter lists are consistently enveloped in the following manner:
{ "data": [ { ... } ] } |
camelCase
and are consistent with the resource name in the URL or with the embed
URL parameter.From early API versions, foreign keys have been replaced with identifiers like the following:
v3 and earlier | v4 and later | ||
---|---|---|---|
|
| ||
|
|
Support for basic CRUD (Create, Read, Update, and Delete) operations across most platform objects.
NOTE: Some of these specific operations may not be supported in the current release. For a complete list, see API Endpoints. |
Operation | HTTP Method | Example URL | Notes |
---|---|---|---|
Create | POST | /v3/people | |
POST | /v3/jobResults | ||
Read | GET | /v3/people/1 | 1 = internal user Id |
GET | /v3/jobResults/10 | 10 = internal job Id | |
GET | /v3/people/1/jobGroups | ||
GET | /v3/jobGroups/4/flowNode | flowNode is a singular reference. Most resource names are plural. | |
List | GET | /v3/people | |
GET | /v3/jobResults | ||
Update | PATCH | /v3/people/1 | Partial replacement |
PATCH | /v3/jobResults/10 | Partial replacement | |
PUT | /v3/people/1 | Full replacement | |
PUT | /v3/jobResults/10 | Full replacement | |
Delete | DELETE | /v3/people/1 | |
DELETE | /v3/jobResults/10 |
An association can be referenced using the above URL structuring or by applying the embed
query parameter as part of the reference to the specific resource. Example:
https:/wrangler.example.com/v3/jobGroups/6?embed=flowNode |
Example response:
{ "id": 6, "description": "A nifty job group", "flowNode": { "id": 1, "script": { "id": 1 }, "terminal": true ... } } |
The id
value of the association is always included in the response.
NOTE: Some endpoints may accept and return a custom media type. These endpoints are documented. |
Action | Header | Required? |
---|---|---|
Client request that expects a response body | request header:Accept: application/json | should include |
Client request that includes a request body | request header:Content-Type: application/json | required |
Server response that includes a response body | response header:Content-Type: application/json | required |
The REST APIs use the same authentication methods as the UI. Each call to an API endpoint must include authentication credentials for a user with access to the requested objects. See API Authentication.
If SSL has been enabled for the , requests to URL endpoints are automatically redirected to the HTTPS equivalent.
Single-file upload is supported.
Multi-file upload is not supported.
NOTE: API versioning is not synchronized to specific releases of |
APIs are designed to be backward compatible so that scripts and other tooling built on a previous version of an endpoint remain valid until the previous version has reached end-of-life. Each API is supported across a window of releases, after which you must reference a newer version of the API.
API endpoint routes support a consistent structuring and do not contain business logic.
Version information is available at the following endpoint:
<http/https>://<my_server>:<port_number>/<version>/version |
For more information, see API Version Support Matrix.
Request Method | Request Endpoint | HTTP Status Code (success) |
---|---|---|
POST | /v3/<resource> | 201 Created |
GET | /v3/<resource> | 200 OK |
GET | /v3/<resource>/<id> | 304 Not Modified when client has cached version. See Caching below. |
PATCH | /v3/<resource>/<id> | 200 OK |
PUT | /v3/<resource>/<id> | 200 OK |
DELETE | /v3/<resource>/<id> | 204 No Content |
The following error codes can apply to any of the above requests:
NOTE: 5xx status codes may be generated by the server. |
HTTP Status Code (client errors) | Notes |
---|---|
400 Bad Request | Potential reasons:
|
403 Forbidden | Incorrect permissions to access the Resource. |
404 Not Found | Resource cannot be found. |
410 Gone | Resource has been previously deleted. |
415 Unsupported Media Type | Incorrect Accept header. |
When a resource has been cached in the client, the client may set an If-Modified-Since
header in HTTP date format on the request. If so:
General Response | HTTP Status Code |
---|---|
Returns full modified resource | 200 OK |
Returns an empty response for unmodified resource | 304 Not Modified |
By chaining together sequences of calls to API endpoints, you can create, read, update, and delete objects using identifiers accessible through the returned JSON. For more information, see API Endpoints.
For more information on endpoint workflows, see API Workflows.
The REST APIs can also be used for integrating the core transformation experience of the into a third-party application. Using a series of URL-based calls, you can retrieve and display specified datasets in the Transformer page, where authenticated users can wrangle datasets controlled by the third-party application. See API - UI Integrations.