API Configuration

Step 1: Select Connector

Moveworks comes pre-configured with a many out-of-the-box connectors for the platforms we integrate with. Connectors help abstract:

  • Authentication logic
  • Establishing connections to various systems
  • Storing base URLs - which is shared by other APIs calling the same platform.

For most cases you will leverage an existing connector for your system.

Connector Configuration

Step 2: (Optional) Create new Connector

For first time connecting to a system, set up a new connector with:

  • Name
  • Description
  • Base URL
  • Auth details.

Connector Configuration

Securely store credentials based on your auth type:

No Auth

No additional details needed.

Header Auth

API Key Secret:

API Key in URL

URL Param Name:

API Key Secret:

Basic Auth

Username:

Password:

OAuth2 client credential grant

Client Id:

Client Secret:

Username:

Password:

OAuth2 password grant example

Client Id:

Client Secret:

OAuth2 refresh token grant

Client Id:

Client Secret:

Refresh Token:

(Optional) Scope:

OAuth1

Consumer Key:

Consumer Secret:

Token:

Token Secret:

(Optional) Realm:

Once you have your connectors set up, you can use them in both Paths & Queries.

Step 3: API Connection Configuration

info

Paths & Queries API Calls will timeout after 16 seconds with no response from the requested server.

Step 3.1: Set up Base API Parameters

For both Paths & Queries you start the API configuration by specifying your Endpoint path, Query parameters, Method & Headers.

Untitled

Note: the pre-defined connector base url and inputted endpoint path are combined to create a unified API endpoint.

Make sure to add your query parameters to the dedicated table

❌ Don't add query parameters to the endpoint path

5 api warning

✅ Add query parameters to the dedicated table

3a query params

Step 3.2: Paths API Configuration

Paths workspace allows you to configure APIs to Create or Update information in external business systems. Note: In you'd like to instead "read" data, consider using Queries workspace.

Input Question Response in API

If your Path had a question, you can access the user-response in the API endpoint path, query params or JSON body. Access the question response using its unique label with the {{question_label}} notation.

Use your question label

api label

Directly access it in your API configuration

paths api config

[Paths] Access User Email in API

You can also dynamically reference the user's email using the "{{user_email_addr}}" notation.

Note: Whitespaces are allowed in the question labels & JSON body.

Step 3.3: Queries API Configuration

Queries workspace allows you to configure APIs to Read information from external business systems Note: In you'd like to instead "update" business data, consider using Paths workspace.

Access User Keywords in API

If your query had a keyword, you can provide the extracted slot value using the {{query}} notation in the API endpoint path, query params or JSON body.

query reference

[Queries] Access User Email in API

You can also dynamically reference the user's email using the "{{requestor.email_addr}}" notation.

Note: Whitespaces are allowed in the question labels & JSON body.

Moveworks IP Address Whitelisting

Make sure to Whitelist Moveworks in your APIM (APIGEE, Workato, Azure APIM) to avoid your Paths/Queries Webhooks from failing!

Moveworks Commercial U.S. Prod:

  • 35.162.107.194
  • 34.213.154.55
  • 34.210.219.51

Your API configuration is now complete!

Copyright © Moveworks 2023. All right reserved.