copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2022-01-04 |
watsonplatform,migrate watson endpoints,update watson endpoints,update watson url |
watson |
{{site.data.keyword.attribute-definition-list}}
{: #endpoint-change}
{{site.data.keyword.watson}} API endpoint URLs at watsonplatform.net
are changing and will not work after they are retired. Update your calls to use the newer endpoint URLs.
{: shortdesc}
The watsonplatform.net
endpoint URLs were retired on 26 May 2021. Update your API calls to use new URLs.
{: deprecated}
As each {{site.data.keyword.watson}} service announced in December 2019, the pattern for the new endpoint URLs is api.{location}.{offering}.watson.cloud.ibm.com
. For example, with {{site.data.keyword.conversationshort}} services that are hosted in Washington DC, the message
endpoint changes from https://gateway-wdc.watsonplatform.net/assistant/api/v1/workspaces/{workspace_id}/message
to https://api.us-east.assistant.watson.cloud.ibm.com/instances/{instance_id}/v1/workspaces/{workspace_id}/message
. The domain, location, and offering identifier are different in the new endpoint.
When you call a {{site.data.keyword.watson}} API, use the new base URL that corresponds to your {{site.data.keyword.watson}} offering and to the location where your service instance is hosted.
{: #endpoint-find-update}
You can find the URL for your service instance with the service credentials. You can also update the endpoint URL and API key in the same place.
- Click the name of the service in the Resource list{: external}.
- If you see a URL with the domain
watsonplatform.net
in the credentials, update the credentials:- Click the Service credentials tab, and then click New credential.
- Expand the new credentials and look for the
url
. The pattern isapi.{location}.{offering}.watson.cloud.ibm.com
. - Look for the
apikey
in the new credentials.
- Delete the older credentials by clicking the Delete icon for the set.
- Update your API calls to use the
watson.cloud.ibm.com
URL and API key values.
{: #endpoint-update-code}
After 26 May 2021, your applications and API calls that use watsonplatform.net
cannot connect.
{: important}
Update your client applications to use the updated endpoint URL with the pattern api.{location}.{offering}.watson.cloud.ibm.com
and the API key from the same set of credentials. Although the existing API key works with the new endpoint URL until you delete the older credentials, some {{site.data.keyword.watson}} tools might continue to use the old URL if it exists. By deleting the older credential set, you reduce the chance that the call does not succeed.
For more information about setting the URL with the {{site.data.keyword.watson}} SDKs, see the Endpoint URLs section of the API reference for your service.
{: #endpoint-links}
{{site.data.keyword.conversationshort}} integrations: For more information about how to update endpoint URLs (including web chat, Slack, Facebook Messenger, Jupyter Notebooks), see the {{site.data.keyword.conversationshort}} release notes.