451058192 | Posts: 80

Creating an API call in Postman

0 votes

I'm trying to get a senders API Key for CA production do I have postman created correctly?

 

 


Attachments
Postman.PNG42.58 KB
Duo_Liang | Posts: 3776

Reply to: Creating an API call in Postman

0 votes

Hi Lori,

 

Few thoughts as per your screenshot:

#1. you don't need to use curly bracelet surrounding the sender ID

#2. for the API Key, if you want to set it up as a Postman variable, you can follow this Postman guide Using variables to add the api_key as a variable in current Postman environment and reference it as {{api_key}}.

Or alternatively, simply set the API Key in plain text, like Authorization: Basic QVRRT1xxxxxxWVA4TA==

Below is my Postman setup:

2-17-1

Duo


Duo_Liang | Posts: 3776

Reply to:

0 votes

The top right dropdown suggests you are currently with "No Environment", so have you set the "api_key" as a global variable instead?

If you click on the eye icon beside the "No Environment" dropdown, you should see like below:
2-17-2

If you haven't add "api_key" as a global variable, hit "Edit", add a row, and don't forget to Save the result.

 

Duo


451058192 | Posts: 80

Reply to: Creating an API call in Postman

0 votes

Still the same issue :(


Attachments
Postman_1.PNG120.19 KB
Duo_Liang | Posts: 3776

Reply to:

0 votes

Hi Lori,

 

Not sure if you hide the actual API Key, if so, you may need to specify both the initial and current values:

2-18-2

Otherwise, your API Key should be a base64 string, 36 digits length, normally ending with two equal marks, which looks like below:
nlj2VRsdmFRWOkt11cWcWl82hlRRNC302Q==

If you are the account owner, you can log onto your sender portal: https://apps.e-signlive.ca/a/login > expand "Admin" dropdown menu > choose "API Access" find the API Key there.

 

The other way to specify API Key is to directly specify the request headers as Authorization : Basic nlj2VRsdmFRWOkt11cWcWl82hlRRNC302Q==

2-18-1

 

Duo

 


451058192 | Posts: 80

Reply to: Creating an API call in Postman

0 votes

I've got the owners API key and it appears I've gotten further but I don't have permission.  How do I get permission?

 

 


Attachments
Duo_Liang | Posts: 3776

Reply to:

0 votes

Hi Lori,

 

Didn't realize that your account has turned on Roles & Permissions feature. It's a known issue that turning on this feature could cause limited API access, and OneSpan Sign is actively investing and trying to fix the API access issue for R&P and sub accounts feature. In the meantime, accounts with this feature turned on are more meant for Web UI usage only. 

On top of using API call to get sender API, I actually have another approach to work it around. If you want to follow this path, we can move the conversation to a more private thread ([email protected]) and I will send you the instructions, all operations will ONLY be performed at your side, hence your API Key will keep secure.

 

Duo


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off