Oktopost
Account

Users

Get, list, create, update, and delete users.

Users are individuals who have login access to the social media management platform or the advocacy board.

Get User

Retrieve a single user by ID.

GET /v2/user/:userId

Parameters

Prop

Type

Example Request

curl -X GET "https://api.oktopost.com/v2/user/00A000000000001" \
  -u ACCOUNT_ID:API_KEY

Example Response

{  
    "Result":true,
    "User":{  
        "Id":"00A000000000001",
        "Created":"2014-12-21 10:27:25",
        "Modified":"2015-08-04 09:37:49",
        "Status":"active",
        "Name":"Jane Smith",
        "FirstName":"Jane",
        "LastName":"Smith",
        "Email":"jane.smith@example.com",
        "LastLogin":"2015-07-23 09:13:17",
        "LastBoardLogin":"2015-07-29 14:48:18",
        "HasBrowserExtension":1,
        "LinkedInId":"",
        "LinkedInName":"",
        "LinkedInImageUrl":"",
        "TwitterId":"",
        "TwitterName":"",
        "TwitterImageUrl":"",
        "FacebookId":"",
        "FacebookName":"",
        "FacebookImageUrl":"",
        "Timezone":"America/New_York",
        "Language":"en"
    }
}

List Users

Retrieve all users in the account. See Pagination for shared behavior.

GET /v2/user

Parameters

Prop

Type

Example Request

curl -X GET "https://api.oktopost.com/v2/user?q=jane&_order=name,1&_count=50" \
  -u ACCOUNT_ID:API_KEY

Example Response

{  
    "Result":true,
    "Items":[  
        {  
            "Id":"00A000000000001",
            "Name":"Jane Smith",
            "Email":"jane.smith@example.com",
            "LastLogin":"2015-07-23 09:13:17",
            "Role":"admin",
            "Timezone":"America/New_York"
        },
        ...
    ],
    "Total":10
}

Create User

Create a user in the account.

POST /v2/user

Parameters

Prop

Type

Example Request

curl -X POST "https://api.oktopost.com/v2/user" \
  -u ACCOUNT_ID:API_KEY \
  -d firstName="Jane" \
  -d lastName="Smith" \
  -d email="jane.smith@example.com" \
  -d password="123456" \
  -d role="admin" \
  -d timezone="America/New_York"

Example Response

Returns the user in the same format as Get User.

Update User

Update a user's name, email, password, or time zone.

POST /v2/user/:userId

Parameters

Prop

Type

Example Request

curl -X POST "https://api.oktopost.com/v2/user/00A000000000001" \
  -u ACCOUNT_ID:API_KEY \
  -d firstName="Jane" \
  -d lastName="Doe" \
  -d email="jane.doe@example.com" \
  -d password="123456" \
  -d timezone="America/New_York"

Example Response

Returns the user in the same format as Get User.

Delete User

Delete a user.

DELETE /v2/user/:userId

Parameters

Prop

Type

Example Request

curl -X DELETE "https://api.oktopost.com/v2/user/00A000000000001" \
  -u ACCOUNT_ID:API_KEY