Our docs got a refresh! Check out the new content and improved navigation. For detailed API reference see our Python SDK docs and TypeScript SDK.
Description
Integrations

IBM Watson

Create an IBM Watson Project

Let's set up a sandbox project with IBM Watson:

Then access it here:

Now we are at our created project!

Get a Watson Project API Key

From our Access tokens page, click "New access token" to get our API key:

Now we should have an API Key!

Get an IBM IAM Token

With our API Key, we can generate an IAM token using this curl request:

curl -X POST 'https://iam.cloud.ibm.com/identity/token' -H 'Content-Type: application/x-www-form-urlencoded' -d 'grant_type=urn:ibm:params:oauth:grant-type:apikey&apikey=MY_APIKEY'

More details on generating an IBM Cloud IAM token here!

Get an IBM Request URL

Now from your projects dashboard, you should see a "View Code" button in the top right:

If you click on the "View Code" button, you will get a cURL request:

From there, you can grab the Python code snippet and execute this as a Patronus Task as shown in the Quick Start guide code snippet here.

On this page