SocialKit
APIAccounts

List account actions

Get the extra actions a connected account supports, such as creating a Pinterest board, with the input each one takes.

An action is something only one network offers. The list is empty for accounts on a network without actions. Today Pinterest accounts have list-boards and create-board. Run an action with Run an account action.

Request

  • Method: GET
  • URL: https://app.socialk.it/core/api/<workspaceUuid>/accounts/<accountUuid>/actions
  • Authorization: Bearer <personal-key>
  • Roles: Admin, Member, Viewer (see Permissions)

Path parameters

ParameterTypeDescription
workspaceUuidstringUUID of the workspace.
accountUuidstringUUID of the account.

Example

curl -X GET 'https://app.socialk.it/core/api/<workspaceUuid>/accounts/<accountUuid>/actions' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <personal-key>'

Response

{
  "data": [
    {
      "name": "list-boards",
      "description": "Read the boards of the Pinterest account from Pinterest, including ones made outside SocialKit, and keep them as the boards a post can be pinned to.",
      "read_only": true,
      "input": []
    },
    {
      "name": "create-board",
      "description": "Create a board on the Pinterest account. It is kept with the account's boards, so a post can be pinned to it right away.",
      "read_only": false,
      "input": {
        "name": "required, string of up to 100 characters",
        "description": "string of up to 500 characters or null",
        "privacy": "one of PUBLIC, SECRET. PUBLIC when left out. A secret board is seen only by the account and its collaborators."
      }
    }
  ]
}
FieldTypeDescription
namestringAction name. Use it as <action> in the run URL.
descriptionstringWhat the action does.
read_onlybooleantrue when the action changes nothing on the network. A read-only action can still refresh what SocialKit stores for the account.
inputobject or arrayOne entry per body field the action takes: the field name and a line that gives its type, limits and meaning. An action without input returns an empty array [].

For an account on a network without actions, data is an empty array.

{
  "message": "Unauthenticated."
}

On this page