"Failed to parse Connect Session Auth Token" After trying to create Project via Rest API

Juergen Koeck May 30, 2023

Here is the Web Request:

API Create Project call try.png

I authorize with email:Token and both are encoded in Base64
Thanks in advance!

1 answer

1 accepted

3 votes
Answer accepted
Juergen Koeck May 30, 2023

I used the wrong API Key, i had to use the Token from my personal profile

notice1
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 4, 2023

Can you tell me how you solved it? I also encountered this problem

Juergen Koeck December 4, 2023

I now use "Basic" instead of "Bearer" and not the organisation API Key, but my personal API Key

Like notice1 likes this
notice1
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2023

that's right

Thank you

Jayant Bhawal February 7, 2024

This worked for me too.

Here's an example of the nodejs code that worked for me:

 

await axios.get(
"https://myworkspace.atlassian.net/rest/api/3/project",
{
headers: {
Authorization: `Basic ${Buffer.from(
`someone@someorg.com:${token}`,
).toString("base64")}`,
},
},
);
Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events