Account

Both of the account endpoints are private and require a Pro account.


GET /account

Private endpoint. Provides details about the user account.

Endpoint Example

Below is a live example that can be copy and pasted.

curl https://sandbox.sellinpublic.com/api/v0/account -u "demo:sip_api_sand_01234demo56789_key"

Below is the expected result from that cURL call:

{
  "status": "success",
  "messages": [],
  "meta": {},
  "data": {
    "user_id": 1,
    "username": "demo",
    "media_id": 0,
    "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png",
    "display_name": "Demo",
    "bio": "",
    "delay_post": "2 minutes",
    "timezone": "UTC"
  }
}

POST /account

Private endpoint. Updates the account with the information provided.

Request body

bio: string
The text info that is displayed on the user's profile.

display_name: string
The name that is display publicly on the user profile page and with each post.

media_id: integer
To use the default image, send 0. To use a custom profile image, submit the media id the was returned when uploading an image.

Endpoint Example

Below is a live example that can be copy and pasted.

curl https://sandbox.sellinpublic.com/api/v0/account -u "demo:sip_api_sand_01234demo56789_key" -d "display_name=Demo Updated"

Below is the expected result from that cURL call:

{
  "status": "success",
  "messages": [],
  "meta": {},
  "data": {
    "user_id": 1,
    "username": "demo",
    "media_id": 0,
    "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png",
    "display_name": "Demo Updated",
    "bio": "",
    "delay_post": "2 minutes",
    "timezone": "UTC"
  }
}