Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Difficulties with REST API

Graham Whitehouse August 30, 2019

Hello all

I'm new to Confluence and struggling a bit with the API.

I am trying to run a basic query to get details for a Space but constantly getting 401 errors - I am a site-admin / administrator...

What special permissions do I need to be able to access the space via REST? I a using basic auth, calling the following URL:

https://<confluence-host>/wiki/rest/api/space/<spaceKey>

Any help is appreciated! 

2 answers

0 votes
Stan Ry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2019

Hi, basically it's no further than:

curl -k -u your_confluence_account -X GET https://example.net/<instance_name>/rest/api/space/<space_key>
0 votes
Ilya Turov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 30, 2019

Hello, Atlassian has recently deprecated the basic auth for cloud applications because of security reasons. You should try either token or oauth methods.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events