Hi I'm trying to Embedded the Dropbox sign api into my react project.
im using javascript
i want the user to sign in with their account and see their documents that need to be signed.
when they click in a document it sends them to a page where the documents should be embedded
i have the documents id and with that i can get the signature id, now when i try to make this api call it gives me an error
"error_msg": "Signature request is not authorized for embedded signing.",
i tried using the playground and still get the same result , any help is appreciated
async function fetchEmbeddedSignUrl(signatureId) {
console.log(signatureId)
const response = await fetch(`https://api.hellosign.com/v3/embedded/sign_url/${signatureId}`, {
method: 'GET',
headers: {
'Authorization': `Basic ${btoa(API_KEY + ':')}`,
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data)
return data.embedded.sign_url;
}