You can use OAuth to authenticate the Watson Campaign Automation APIs.

  • Getting Started – Read this section first to make sure you are familiar with IBM’s preferred method of API session management.
  • 15 comments on"Authenticating APIs with OAuth"

    1. Carlos Abanto July 17, 2017

      Good afternoon, I need to implement that in our application. We have communication with Silverpop. Is there a way to create and ClientId and application ID and user in order to test?

      • Hello Carlos,
        Can you provide the name of your company so that I am better able to assist you?

        Thank you
        Jeri

    2. Good afternoon,

      What is the limitation of api using oauth authentication?
      Number of requests simultaneously

      Thank you

    3. What is the authorization URL to use when requesting an OAuth access token for the IBM XML API? I noticed the python sample code snippet uses http://engage.spqa1.com/oauth/token as the URL, but when we tried that with our code it wasn’t a valid URL. Our account is on Pod 8 and I know we should be using the api8.ibmmarketingcloud.com/XMLAPI endpoint, but that isn’t working with our OAuth token requests.

    4. Rizwan Arshad June 07, 2018

      Good afternoon,

      In my python project i need to update or add contacts.So far, I am unable to find help about doing this with REST api. There is SOAP api for same

      https://developer.ibm.com/customer-engagement/docs/watson-marketing/ibm-engage-2/watson-campaign-automation-platform/soap-api/database-management-interfaces-user/

      https://developer.ibm.com/customer-engagement/docs/watson-marketing/ibm-engage-2/watson-campaign-automation-platform/soap-api/list-management/

      but can’t find REST api.

      Thank you.

    5. How do I create ClientId and application ID?

      • Hello Johnny,
        Can you provide the name of your company so that I am better able to assist you?

        Thank you
        jeri

    6. Good morning, could you help me with authentication our app? I have weird problem, I already have client_id/client_secret/refresh_token generated, but I’m getting “invalid_client” during connection. Could you write to me and take a look? Thank you!
      Best regards

    7. Hi,

      I’m trying to make an API call to silver pop from Talend (ETL tool) to load an already created database in silverpop using data from a CSV file (uploaded to ‘upload’ folder on the SFTP server). I have got an access token successfully using passing the client ID,client secret and refresh token. I also have a mapping document in the upload directory.
      the end point URL is : “https://api8.ibmmarketingcloud.com/XMLAPI”
      headers are : “Authentication : xxxxxxxxxxxxxxxxx” and “Content-Type : text/xml;charset=utf-8″ and the HTTP body is :

      mapping.xml
      Contact_Data.csv

      I want to load the csv data into already existing database. for the above request I’m getting the below error

      false

      145

      SP.Admin

      Please let me know where im going wrong. Im stuck and have no idea how to proceed.

      Thanks in advance for any input on my problem.

    8. Hi,

      Im trying to make an API call to silver pop through Talend(ETL tool) to load csv data (in upload folder) to an already created database.
      I have successfully got the access_token .. this is how im making the POST
      Endpoitn URL : “https://api8.ibmmarketingcloud.com/XMLAPI”
      Headers : “Authentication : xxxxxndjfdhfjkdlck” and “content-type : text/xml;charset=utf-8″
      body :

      mapping.xml
      Contact_Data.csv

      but I get the below error

      false

      145

      SP.Admin

      can someone please tell me what is wrong with my request? Im stuck and can’t find a way out

      Thanks in advance for any input you give me

      • Fault string is — ![CDATA[Session has expired or is invalid]] and the errorID is 145.

        This is my post body

        mapping.xml
        Contact_Data.csv

        • Hello,
          In addition to the Content-Type header, you should have an Authorization header in the form of:

          Authorization: Bearer access_token_here

          Thank you
          Jeri

      • Hello,
        I have reached out to our product team to get more info on this for you. I will respond once I know more.

        Thank you
        Jeri

    Join The Discussion

    Your email address will not be published. Required fields are marked *