Infoworks Rest API V3
Choose a server to use:
Get authentication_token with username and password.
curl --request GET \ --url http://localhost:3001/v3/security/authenticate \ --header "Authorization: Basic {token}"| object | object | ||
| message | string | optional | |
| result | object | optional | |
| authentication_token | string | optional | |
| is_authenticated | boolean | optional |
xxxxxxxxxx{ "message": "Authentication Success", "result": { "authentication_token": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MjUwMzc2MTcsInN1YiI6IntcbiAgXCJlbWFpbFwiIDogXCJhZG1pbkBpbmZvd29ya3MuaW9cIixcbiAgXCJzY29wZVwiIDoge1xuICAgIFwiYWN0aW9uXCIgOiBcInJlZnJlc2hfdG9rZW5cIlxuICB9XG59IiwianRpIjoiOTFlZGZkMWYtN2Y5My00NjM0LTg4MjctZTZlYjViYWJmNDJkIiwiZXhwIjoxNjI1MDM4NTE3fQ.aCTMjNebvC2Rf1CrJp_wA0dsozJd-uKpTcdEvDyigSU", "is_authenticated": true }}Get authentication_token with refresh_token.
| Authorization | string | refresh token auth header put | required |
xxxxxxxxxxcurl --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 | |
| is_authenticated | boolean | optional |
xxxxxxxxxx{ "message": "Authentication Success", "result": { "authentication_token": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MjUwMzc2MTcsInN1YiI6IntcbiAgXCJlbWFpbFwiIDogXCJhZG1pbkBpbmZvd29ya3MuaW9cIixcbiAgXCJzY29wZVwiIDoge1xuICAgIFwiYWN0aW9uXCIgOiBcInJlZnJlc2hfdG9rZW5cIlxuICB9XG59IiwianRpIjoiOTFlZGZkMWYtN2Y5My00NjM0LTg4MjctZTZlYjViYWJmNDJkIiwiZXhwIjoxNjI1MDM4NTE3fQ.aCTMjNebvC2Rf1CrJp_wA0dsozJd-uKpTcdEvDyigSU", "is_authenticated": true }}Purges authentication token and logs out the user. The user will need to generate a new authentication token for subsequent API calls.
xxxxxxxxxxcurl --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.
xxxxxxxxxxcurl --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 }}