How to get Confluence Space ID from Space Key

Hisamitsu Koga August 24, 2017

I have been using Cloud Confluence here now. I want to get and know Confluence Space ID from Confluence Space Name or Space Key without searching contents in DB. Is there any easy way to realize this request? Any way to realize this request without seaching the contents in DB?

1 answer

4 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 25, 2017

Hello again, Hisamitsu Koga!

You can get this via REST API in Cloud. :) 

Try this:

https://YOURURL.atlassian.net/wiki/rest/api/space/KEY

You'll find your space ID listed as "id" in what that URL returns.

Try it out, and let us know if you have any trouble!

Kind Regards,
Shannon

Hisamitsu Koga August 27, 2017

Hi Shannon,

Thank you for your prompt reply. Worked fine.

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2017

Thank you for letting me know that!

Take care and have a pleasant rest of your week. :) 

Kind Regards,
Shannon

Sasank Kumar March 19, 2023

What we should take instead of that wiki

Sunil Kumar April 5, 2023

cloudId

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events