Migration API Reponses with "You don't have the rights to execute this action" What am I doing wrong?

Issue

So i am trying to pragmatically make new documents using the migration API. How do I get a session token with my ouath account?

I tripled checked the bearer token and the migrationBetaToken.

image

Edit

I realized that I am using an ouath to sign in. how can I get my session token without a password

Impacted feature

Migration API

What steps have you taken to resolve this issue already?

Following the example command line prompts to the T.

Errors

You don't have the rights to execute this action

Your Role

Solo - Self taught

I had the error above because I tried to use an username and password for another account, my bad :stuck_out_tongue_winking_eye:. I was able to fix it by logging into my ouath account and using the cookies to get the session key. Is there a way I can get my account a username and password?

1 Like

Hi Quentin,

I'm glad you figured this out. For the moment it's not possible to get a password and username, but it's in our plans. We'll update you here when this is the case.

Thanks.

1 Like

Hi @quentingibson94

User session tokens are one of two ways to authenticate with the Migration API.

You can also use a permanent token to authenticate, which will let you to avoid the complications you ran into with the session token when you log into Prismic via OAuth or SSO.

2 Likes