#Tiago Mestre
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Are you referring to restricted access keys?
yes
Can you share a request ID for the request where you receive this message?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_MZnI31roR0KLew
Did you just create this request?
yes
Couldn't find it in the Stripe api logs, had to capture the error and read the requestId
Okay, it just takes a little while to show up in our Admin panel so I'm not seeing it yet
But while I'm waiting we do have a reference for different permissions for restricted keys here: https://stripe.com/docs/account/teams/roles.
It's focused on pre-defined roles but it has some info on specific permissions as well
But this article is for permissions for users within the an account, not sure if it helps with restricted api keys.
Another thing, I've never saw this request logged in the Stripe API logs, since it's a connect request not sure if it will appear
The request ID should be a unique identifier of an API request. It shouldn't matter if it's Connect or not but for some reason I'm not seeing it on my end
But the unable to authenticate request message suggests that it wasn't just that you didn't have the correct permissions but that the API could not resolve the key used. Can you share the code you are using to make the request?
const { stripe_user_id: stripeAccountId } = stripeClient.oauth.token({
grant_type: 'authorization_code',
code,
});
To get the code we redirect the user to https://connect.stripe.com/oauth/authorize with scope=read_write and response_type=code
Sorry for the delay. I'm having trouble tracking down the docs on that particular method
What does code represent here?
I do not see an api_key being passed in this request though: https://stripe.com/docs/api/authentication