Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How do i get space key from spaceid in confluence server

I am Getting the Space id from the webhook payload created using the REST APIS given .Refer to this doc :-

Webhook Payload :-

"timestamp": 1650607676259,
"event": "space_updated",
"space": {
"id": XXXXXX,
"creatorKey": "XXXXXXXXXX",
"creationDate": 1648588938819,
"lastModifierKey": "XXXXXXX",
"modificationDate": 1650607676259


Now to Get the other Information about the Space I need the space key . Using Rest APIs how can i get the space key and other informations about the space from spaceid.

2 answers

Hi @Kshitij Katiyar ,

you should get all spaces through (please use a limit based on the number of your spaces) and find your space based on id and then take the key.

Currently there are no other rest apis.


0 votes

@Hi @Kshitij Katiyar 


How did you generate or what generate payload that you paste?


In Confluence REST Api docs there is nothing how to get space details based on spaceId -




I have created a webhook using this doc 

This webhook is delivering this payload at the url i have given in the body while making the webhook and subscribed to space related events .

You can see the this kind of payload under this heading in the below doc 

Event payloads 

Now i need to get the other information about the space but all the apis in this doc  require spaceKey rather than spaceid .I required some kind of Api to get the space key from space id because i am only getting the space id here rather than space key. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

339 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you