Pins

Pins List

GET
/pins.list

Lists items pinned to a channel.

Authorization

slackAuth pins:read
AuthorizationBearer <token>

In: header

Scope: pins:read

Query Parameters

token*string

Authentication token. Requires scope: pins:read

channel*string

Channel to get pinned items for.

Header Parameters

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Response Body

application/json

application/json

curl -X GET "https://example.com/pins.list?token=string&channel=string" \  -H "Content-Type: application/x-www-form-urlencoded"
{  "items": [    {      "channel": "C2U86NC6H",      "created": 1508881078,      "created_by": "U2U85N1RZ",      "message": {        "permalink": "https://hitchhikers.slack.com/archives/C2U86NC6H/p1508197641000151",        "pinned_to": [          "C2U86NC6H"        ],        "text": "What is the meaning of life?",        "ts": "1508197641.000151",        "type": "message",        "user": "U2U85N1RZ"      },      "type": "message"    },    {      "channel": "C2U86NC6H",      "created": 1508880991,      "created_by": "U2U85N1RZ",      "message": {        "permalink": "https://hitchhikers.slack.com/archives/C2U86NC6H/p1508284197000015",        "pinned_to": [          "C2U86NC6H"        ],        "text": "The meaning of life, the universe, and everything is 42.",        "ts": "1503289197.000015",        "type": "message",        "user": "U2U85N1RZ"      },      "type": "message"    }  ],  "ok": true}