Infoworks Rest API V3
Choose a server to use:
Get authentication_token
with username
and password
.
service_id | number | Used to represent the way user has login into infoworks | optional |
curl --request GET \
--url http://localhost:3001/v3/security/authenticate?service_id={service_id} \
--header "Authorization: Basic {token}"
object | object | ||
message | string | optional | |
result | object | optional | |
authentication_token | string | optional | |
is_authenticated | boolean | optional | |
user_id | string | optional |
xxxxxxxxxx
{
"message": "Authentication Success",
"result": {
"authentication_token": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MjUwMzc2MTcsInN1YiI6IntcbiAgXCJlbWFpbFwiIDogXCJhZG1pbkBpbmZvd29ya3MuaW9cIixcbiAgXCJzY29wZVwiIDoge1xuICAgIFwiYWN0aW9uXCIgOiBcInJlZnJlc2hfdG9rZW5cIlxuICB9XG59IiwianRpIjoiOTFlZGZkMWYtN2Y5My00NjM0LTg4MjctZTZlYjViYWJmNDJkIiwiZXhwIjoxNjI1MDM4NTE3fQ.aCTMjNebvC2Rf1CrJp_wA0dsozJd-uKpTcdEvDyigSU",
"is_authenticated": true,
"user_id": "6RkfybTRQQByEey3v"
}
}
Get authentication_token
with refresh_token
.
Authorization | string | refresh token auth header put | required |
xxxxxxxxxx
curl --request GET \
--url http://localhost:3001/v3/security/token/access \
--header "Authorization: {Authorization}"
object | object | ||
message | string | optional | |
result | object | optional | |
authentication_token | string | optional |
xxxxxxxxxx
{
"message": "Authentication Success",
"result": {
"authentication_token": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MjUwMzc2MTcsInN1YiI6IntcbiAgXCJlbWFpbFwiIDogXCJhZG1pbkBpbmZvd29ya3MuaW9cIixcbiAgXCJzY29wZVwiIDoge1xuICAgIFwiYWN0aW9uXCIgOiBcInJlZnJlc2hfdG9rZW5cIlxuICB9XG59IiwianRpIjoiOTFlZGZkMWYtN2Y5My00NjM0LTg4MjctZTZlYjViYWJmNDJkIiwiZXhwIjoxNjI1MDM4NTE3fQ.aCTMjNebvC2Rf1CrJp_wA0dsozJd-uKpTcdEvDyigSU"
}
}
Purges authentication token and logs out the user. The user will need to generate a new authentication token for subsequent API calls.
xxxxxxxxxx
curl --request DELETE \
--url http://localhost:3001/v3/security/token/access \
--header "Authorization: Bearer {token}"
object | object | ||
message | string | optional | |
result | string | optional |
xxxxxxxxxx
{
"message": "Example Success Message",
"result": "Token successfully blacklisted"
}
Validate authentication_token
if its active or not.
xxxxxxxxxx
curl --request GET \
--url http://localhost:3001/v3/security/token/validate \
--header "Authorization: Bearer {token}"
object | object | ||
message | string | optional | |
result | object | optional | |
is_valid | boolean | optional |
xxxxxxxxxx
{
"message": "{string}",
"result": {
"is_valid": true
}
}
Regenerate Refresh Token and blacklist old token.
xxxxxxxxxx
curl --request DELETE \
--url http://localhost:3001/v3/security/token/refresh \
--header "Authorization: Basic {token}"
object | object | ||
message | string | optional | |
result | string | optional |
xxxxxxxxxx
{
"message": "Platform Security Response",
"result": "Successfully Blacklisted Refresh Token."
}
Authorise User.
object | object | ||
entityType | string | optional | |
action | string | optional | |
entityId | string | optional |
xxxxxxxxxx
curl --request POST \
--url http://localhost:3001/v3/security/authorise/user \
--header "Content-Type: application/json" \
--header "Authorization: Bearer {token}" \
--data '{
"entityType": "{string}",
"action": "{string}",
"entityId": "{string}"
}'
object | object | ||
message | string | optional | |
result | object | optional | |
delegation_token | string | optional | |
is_authorised | boolean | optional |
xxxxxxxxxx
{
"message": "{string}",
"result": {
"delegation_token": "{string}",
"is_authorised": "{boolean}"
}
}
Get SAML Redirect URL.
xxxxxxxxxx
curl --request GET \
--url http://localhost:3001/v3/security/sso/initialise \
--header "Authorization: Bearer {token}"
object | object | ||
Location | string | optional |
xxxxxxxxxx
{
"Location": "{string}"
}
LDAP Authorise User.
object | object | ||
userIds | array[string] | optional | |
searchAttribute | string | optional |
xxxxxxxxxx
curl --request POST \
--url http://localhost:3001/v3/security/get/user/data \
--header "Content-Type: application/json" \
--header "Authorization: Bearer {token}" \
--data '{
"userIds": [
"{array[string]...}"
],
"searchAttribute": "{string}"
}'
object | object | ||
users | array[string] | optional |
xxxxxxxxxx
{
"users": [
"{array[string]...}"
]
}
bulk sync (add/update) ldap user by providing login attribute
object | object | ||
search_on | string | optional | |
search_list | array[string] | optional | |
should_update | boolean | Default: true | optional |
should_add | boolean | Default: true | optional |
xxxxxxxxxx
curl --request POST \
--url http://localhost:3001/v3/security/bulk-ldap-sync \
--header "Content-Type: application/json" \
--header "Authorization: Basic {token}" \
--data '{
"search_on": "email",
"search_list": "admin@infoworks.io",
"should_update": true,
"should_add": true
}'
object | object | ||
message | string | optional | |
result | object | optional | |
new_users_count | integer | optional | |
existing_user_count | integer | optional | |
added | array[object] | optional | |
string | optional | ||
id | string | optional | |
updated | array[object] | optional | |
string | optional | ||
id | string | optional | |
failed | array[object] | optional | |
string | optional | ||
id | string | optional | |
error | string | optional |
xxxxxxxxxx
{
"message": "Successfully synced ldap users",
"result": {
"new_users_count": 1,
"existing_user_count": 20,
"added": [
{
"email": "modeller@infoworks.io",
"id": "8qvdcWsT5foNuryNF"
}
],
"updated": [
{
"email": "admin@infoworks.io",
"id": "6RkfybTRQQByEey3v"
}
],
"failed": [
{
"email": "prodops@infoworks.io",
"id": "9DvdcZsH5foNuryVN",
"error": "No valid role found for the User."
}
]
}
}
Enable/Disable schedule for table groups
CRUD Operations to manage Service Authentication mechanisms
CRUD Operations to manage Secret Stores
CRUD Operations to manage Secrets
Read Operation for event notifications
Read Operation for engagement metrics
Read Operation for Data Catalog
CRUD operations from pipeline version locks
Operations to manage Jobflows
Environment Cluster to start/stop/restart cluster
Target Data Connections
CRUD Operations to manage user specific presets