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):

Update Profile (Layout & Blurbs)

POST /users/me/profile Updates profile sections and CSS. Payload (multipart/form-data):

Account Settings

POST /account/setting Updates core account info. Payload (multipart/form-data):

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):

Create Blog Entry

POST /blog/new Payload (multipart/form-data):

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)