#Carlos-resend-event
1 messages · Page 1 of 1 (latest)
Hi there! You want to use the CLI to do this: https://stripe.com/docs/cli/events/resend
thanks
Sure!
The provided key 'rk_live_*********************************************************************************************8mlQKV' does not have the required permissions for this endpoint on account 'acct_1JycFYANR34g5yeQ'. Having the 'rak_webhook_write' permission would allow this request to continue.
Ah you are trying to resend a Connect event?
yes
So yeah I do believe you would need a restricted key with the proper permissions (rak_webhook_write) to do this if I remember correctly.
You also need to use the --account=acct_xxx flag here: https://stripe.com/docs/cli/events/resend#events_resend-account
what do i need to do to configure this key?
You configure restricted keys in your Dashboard here: https://dashboard.stripe.com/apikeys
Please delete that immediately
I have a restricted key created
That is a live restricted key
And this is a public server
Would recommend rolling it as well as it could give someone access to your account!
Thanks, I don't know where I was thinking.
All good!
apparently I already have restricted keys created
That's fine. Do you have one that has Write permissions for Webhook Endpoints?
Specifically:
I have two restricted keys created will the stripe CLI know which one to use?
Ah I forgot you need to specify your platform endpoint: https://stripe.com/docs/cli/events/resend#events_resend-webhook-endpoint
is the following command correct?
stripe events --api-key test_mdksmdks resend evt_1LSMEhANR34g5yeQ0LyIQsEB --live
Or you can forward via the CLI
Mostly, but you should also set --account if you are resending an event on your Connected Account
stripe events --api-key test_mdksmdks resend evt_1LSMEhANR34g5yeQ0LyIQsEB --live --account=acct_123
And --webhook-endpoint=we_123 if you want to resend directly to your platform endpoint
Hmm the event you mentioned above is on your account, no? Not on a Connected Account
Are you sure you are dealing with a Connect event at all? And not just an event on your own account?
Try stripe events --api-key test_mdksmdks resend evt_1LSMEhANR34g5yeQ0LyIQsEB --live --webhook-endpoint=we_1KQuZ3ANR34g5yeQndgsyP58
done
It worked?
🎉
thank you so much