Unable to render embedded object: File (Teach_Centre_Navy.png) not found.

Skip to end of banner
Go to start of banner

WorkBook API > Authentication

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Authentication can be done in several ways using:

  • Basic authentication (with basic you can call every request if you include the correct headers and this is only to be used if you’re running HTTPS)

  • LDAP

  • 2Factor

See further information on Authentication in Postman

ON THIS PAGE YOU WILL FIND:


TEST THE API

Below is a test was done using POSTMAN and the connection type of basic authentication. As you can see the same data that was shown within the interface is able to be retrieved out in JSON format that you can build toward.

A common practice is to use the API for building dashboards and data extraction points. The example below is data taken from two different areas, one is the client and some of the other data is the client responsible mixed in with a certain profile type selected (in this case it’s ID 7 which translates to “mail out”).


HOW DO I FIND THE CALLS NEEDED?

Postman

You can find the official Postman collection, including documentation in Postman

WorkBook API docs

You can find every available API endpoint within WorkBook by navigating to the following URL:
http://{base url}.workbook.net/api/metadata

Snag_2d8cb6a3.png

Browser Developer Tools

One way to find the needed API calls is to open up the inspecting tool within your browser. In this view, you can watch every API call being made in the application, as well as sent and response data.

  • Press F12 in most browsers (this was done in Chrome) and look for the network area

  • In the network area, you can refresh WorkBook on the top right and it will display all the calls that the program is using

  • An alternative way to get the console is to right-click while having the cursor on the top bar

For macOS, to open this window, go to View → Developer → Inspect Element

(macOS shortcut : option + command + I )



  • No labels