cURL
curl --request GET \ --url https://hero.page/api/v1/getSpace/{spaceId} \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "img": "<string>", "name": "<string>", "slug": "<string>", "isOwner": true }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the space
Space retrieved successfully
The response is of type object.
object