Quick question: Are Confluence page/space IDs globally unique?

Hey folks,

I’m just wondering whether the ids you get from the id property of both spaces and pages is actually globally unique or not - and if they aren’t globally unique, what are they unique to? The particular confluence domain?

For example, would it be possible for both foo.atlassian.net/wiki/spaces/AB/pages/12345 and bar.atlassian.net/wiki/spaces/BC/pages/12345 to exist? Or, once the page id 12345 is taken, it’s gone for everyone?

Thanks in advance!