API Requests
This page documents the raw HTTP requests sent by the SpaceHey mobile app (v1 API).
Base URL: https://api.spacehey.com/v1
Auth: Headers must include Authorization: Bearer <TOKEN> and X-Client-Id: app-android (or app-ios).
User & Profile
Update Status
POST /users/me/status
Updates the status header on the profile.
Payload (multipart/form-data):
-
status: (String) What you are doing.
-
mood: (String) How you are feeling.
-
you: (String) Intro text.
Update Profile (Layout & Blurbs)
POST /users/me/profile
Updates profile sections and CSS.
Payload (multipart/form-data):
-
about_me: (HTML/String)
-
meet: (HTML/String)
-
general: (HTML/String)
-
music: (HTML/String)
-
movies: (HTML/String)
-
television: (HTML/String)
-
books: (HTML/String)
-
heroes: (HTML/String)
-
code: (CSS String)
Account Settings
POST /account/setting
Updates core account info.
Payload (multipart/form-data):
-
name: (String) Display name.
-
email: (String)
-
username: (String) URL slug.
-
privacy: public | friends | private
-
im_privacy: everyone | friends
Social Actions
Friend Actions
POST /users/{id}/addfriend - Send Request (Empty Body)
POST /users/{id}/accept - Accept Request (Empty Body)
POST /users/{id}/decline - Decline Request (Empty Body)
POST /users/{id}/block - Block User (Empty Body)
POST /users/{id}/unblock - Unblock User (Empty Body)
Content Creation
Create Bulletin
POST /bulletins/new
Payload (multipart/form-data):
-
subject: (String) Title.
-
content: (HTML/String) Body.
-
duration: 1d | 5d | 10d
-
comments: enabled | disabled
Create Blog Entry
POST /blog/new
Payload (multipart/form-data):
-
subject: (String) Title.
-
content: (HTML/String) Body.
-
category: (Int) Category ID.
-
privacy: public | friends | diary
-
comments: enabled | disabled
Edit Blog Entry
POST /blog/edit
Payload (multipart/form-data):
Same as /blog/new, but includes id in the form data or URL.
Post Comment
POST /comments/{type}/{id}/new
Types: bulletin, blog, profile.
Payload (multipart/form-data):
comment: (String) The comment text.
Misc
Feature Voting
POST /featurevoting/features/{id}/vote - Upvote (Empty Body)
POST /featurevoting/features/{id}/unvote - Remove Vote (Empty Body)
Auth
POST /auth/invalidate - Logout/Kill Token (Empty Body)