Thanks

GET /api/thanks
get a list of all thanks for the current tenant or all by a specific user

Success Response Code: 200

Additional Routes

  • (GET) fetch thanks for single user - /users/:user_id/thanks

Params

Param name Description
user_id
optional

limit thanks to those received by this user


Value: Must be a Integer
since
optional

find thanks after a specific time using unix timestamps


Value: Must be a Integer
page
optional

page number to be returned (default=1)


Value: Must be a Integer
per_page
optional

number of thanks to be returned per page (default=20, max=500)


Value: Must be a Integer

Response Fields

thanks collection of thanks Array<Thanks>
thanks[id] id of newly created thanks Integer
thanks[body] the custom message of thanks text String
thanks[badge] badge used for sending thanks Badge
thanks[user] information about the User that sent thanks User
thanks[recipient] Deprecated: use thanks[recipients]. Will contain the first value from thanks[recipients]. User
thanks[recipients] recipient information about the Users that received thanks Array[User]
thanks[announcement] stream message broadcast for the sent thanks Message

Example Curl Commands

curl -X GET -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/thanks.json"
curl -X GET -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/users/26/thanks.json"

Examples

GET /thanks.json
200
{
  "thanks": [
    {
      "badge": {
        "id": 73,
        "name": "enabled badge 1 & øther things",
        "description": "enabled badge1 description & øther things",
        "url": "https://socialcast.socialcast.test/badges/73",
        "images": {
          "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
          "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
          "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
          "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
        }
      },
      "user": {
        "contact_info": {
          "email": "active'100@socialcast.com"
        },
        "manager": null,
        "custom_fields": [],
        "followable": false,
        "contact_id": null,
        "following_count": 0,
        "followers_count": 0,
        "status_message": null,
        "id": 115,
        "first_name": "J'øhn103",
        "last_name": "D'øe101",
        "name": "J'øhn103 D'øe101",
        "html_name": "J&#39;øhn103 D&#39;øe101",
        "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn103Døe101",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "recipient": {
        "contact_info": {
          "email": "active'101@socialcast.com"
        },
        "manager": null,
        "custom_fields": [],
        "followable": true,
        "contact_id": null,
        "following_count": 0,
        "followers_count": 0,
        "status_message": null,
        "id": 116,
        "first_name": "J'øhn104",
        "last_name": "D'øe102",
        "name": "J'øhn104 D'øe102",
        "html_name": "J&#39;øhn104 D&#39;øe102",
        "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn104Døe102",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "recipients": [
        {
          "contact_info": {
            "email": "active'101@socialcast.com"
          },
          "manager": null,
          "custom_fields": [],
          "followable": true,
          "contact_id": null,
          "following_count": 0,
          "followers_count": 0,
          "status_message": null,
          "id": 116,
          "first_name": "J'øhn104",
          "last_name": "D'øe102",
          "name": "J'øhn104 D'øe102",
          "html_name": "J&#39;øhn104 D&#39;øe102",
          "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
          "avatars": {
            "is_system_default": true,
            "id": null,
            "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
            "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
            "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
            "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
            "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
          },
          "username": "Jøhn104Døe102",
          "active": true,
          "terminated": false,
          "inactive": false,
          "role": "member",
          "type": "User",
          "title": null,
          "out_of_office": false,
          "out_of_office_on": null,
          "back_in_office_on": null,
          "company_login": null
        }
      ],
      "announcement": {
        "id": 48,
        "user": {
          "id": 115,
          "first_name": "J'øhn103",
          "last_name": "D'øe101",
          "name": "J'øhn103 D'øe101",
          "html_name": "J&#39;øhn103 D&#39;øe101",
          "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
          "avatars": {
            "is_system_default": true,
            "id": null,
            "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
            "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
            "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
            "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
            "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
          },
          "username": "Jøhn103Døe101",
          "active": true,
          "terminated": false,
          "inactive": false,
          "role": "member",
          "type": "User",
          "title": null,
          "out_of_office": false,
          "out_of_office_on": null,
          "back_in_office_on": null,
          "company_login": null
        },
        "title": "enabled badge 1 & øther things Thanks to @Jøhn104Døe102",
        "body": "way awesome",
        "html_body": "<div class=\"markdown-body\"><p>way awesome</p></div>",
        "action": "gave thanks",
        "verb": null,
        "message_type": "thanks",
        "icon": null,
        "url": "https://socialcast.socialcast.test/api/messages/48",
        "permalink_url": "https://socialcast.socialcast.test/messages/48",
        "external_url": null,
        "created_at": "2017-11-17T18:48:07+00:00",
        "updated_at": "2017-11-17T18:48:07+00:00",
        "attachments": [],
        "media_files": [],
        "contains_url_only": null,
        "external_resources": [],
        "tags": [],
        "last_interacted_at": 1510944487,
        "group": {},
        "category_id": null,
        "recipients": [
          {
            "id": 116,
            "first_name": "J'øhn104",
            "last_name": "D'øe102",
            "name": "J'øhn104 D'øe102",
            "html_name": "J&#39;øhn104 D&#39;øe102",
            "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
            "avatars": {
              "is_system_default": true,
              "id": null,
              "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
              "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
              "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
              "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
              "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
            },
            "username": "Jøhn104Døe102",
            "active": true,
            "terminated": false,
            "inactive": false,
            "role": "member",
            "type": "User",
            "title": null,
            "out_of_office": false,
            "out_of_office_on": null,
            "back_in_office_on": null,
            "company_login": null,
            "mention_name": "Jøhn104Døe102"
          }
        ],
        "thumbnail_url": null,
        "player_url": null,
        "player_params": null,
        "likable": false,
        "ratable": false,
        "rating": null,
        "ratings_average": null,
        "ratings_count": null,
        "editable": true,
        "deletable": true,
        "watchable": false,
        "watch": null,
        "flag": null,
        "source": {
          "name": "web",
          "formal_name": "Web App",
          "id": "web"
        },
        "poll": null,
        "embed": null,
        "hidden": null,
        "subscribed": null,
        "groups": [],
        "extensions": [
          {
            "extension_type": "thanks_announcement",
            "recipient": {
              "id": 116,
              "first_name": "J'øhn104",
              "last_name": "D'øe102",
              "name": "J'øhn104 D'øe102",
              "html_name": "J&#39;øhn104 D&#39;øe102",
              "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
              "avatars": {
                "is_system_default": true,
                "id": null,
                "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
                "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
                "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
                "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
                "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
              },
              "username": "Jøhn104Døe102",
              "active": true,
              "terminated": false,
              "inactive": false,
              "role": "member",
              "type": "User",
              "title": null,
              "out_of_office": false,
              "out_of_office_on": null,
              "back_in_office_on": null,
              "company_login": null
            },
            "recipients": [
              {
                "id": 116,
                "first_name": "J'øhn104",
                "last_name": "D'øe102",
                "name": "J'øhn104 D'øe102",
                "html_name": "J&#39;øhn104 D&#39;øe102",
                "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
                "avatars": {
                  "is_system_default": true,
                  "id": null,
                  "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
                  "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
                  "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
                  "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
                  "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
                },
                "username": "Jøhn104Døe102",
                "active": true,
                "terminated": false,
                "inactive": false,
                "role": "member",
                "type": "User",
                "title": null,
                "out_of_office": false,
                "out_of_office_on": null,
                "back_in_office_on": null,
                "company_login": null
              }
            ],
            "badge": {
              "id": 73,
              "name": "enabled badge 1 & øther things",
              "description": "enabled badge1 description & øther things",
              "url": "https://socialcast.socialcast.test/badges/73",
              "images": {
                "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
                "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
                "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
                "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
              }
            },
            "in_reference_to": null
          }
        ],
        "new_group_id": null,
        "new_group_archived_at": null,
        "days_of_stickiness": 0,
        "sticky_for_current_user": false,
        "shareable": false,
        "share_count": 0,
        "client_provided_guid": null,
        "comments_count": 0,
        "comments": [],
        "likes": [],
        "likes_count": 0,
        "shared_message": null,
        "commentable": true
      },
      "id": 1,
      "body": "way awesome",
      "image_url": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
      "source": {
        "name": "web",
        "formal_name": "Web App",
        "id": "web"
      }
    },
    {
      "badge": {
        "id": 73,
        "name": "enabled badge 1 & øther things",
        "description": "enabled badge1 description & øther things",
        "url": "https://socialcast.socialcast.test/badges/73",
        "images": {
          "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
          "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
          "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
          "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
        }
      },
      "user": {
        "contact_info": {
          "email": "active'100@socialcast.com"
        },
        "manager": null,
        "custom_fields": [],
        "followable": false,
        "contact_id": null,
        "following_count": 0,
        "followers_count": 0,
        "status_message": null,
        "id": 115,
        "first_name": "J'øhn103",
        "last_name": "D'øe101",
        "name": "J'øhn103 D'øe101",
        "html_name": "J&#39;øhn103 D&#39;øe101",
        "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn103Døe101",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "recipient": {
        "contact_info": {
          "email": "active'101@socialcast.com"
        },
        "manager": null,
        "custom_fields": [],
        "followable": true,
        "contact_id": null,
        "following_count": 0,
        "followers_count": 0,
        "status_message": null,
        "id": 116,
        "first_name": "J'øhn104",
        "last_name": "D'øe102",
        "name": "J'øhn104 D'øe102",
        "html_name": "J&#39;øhn104 D&#39;øe102",
        "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn104Døe102",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "recipients": [
        {
          "contact_info": {
            "email": "active'101@socialcast.com"
          },
          "manager": null,
          "custom_fields": [],
          "followable": true,
          "contact_id": null,
          "following_count": 0,
          "followers_count": 0,
          "status_message": null,
          "id": 116,
          "first_name": "J'øhn104",
          "last_name": "D'øe102",
          "name": "J'øhn104 D'øe102",
          "html_name": "J&#39;øhn104 D&#39;øe102",
          "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
          "avatars": {
            "is_system_default": true,
            "id": null,
            "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
            "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
            "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
            "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
            "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
          },
          "username": "Jøhn104Døe102",
          "active": true,
          "terminated": false,
          "inactive": false,
          "role": "member",
          "type": "User",
          "title": null,
          "out_of_office": false,
          "out_of_office_on": null,
          "back_in_office_on": null,
          "company_login": null
        }
      ],
      "announcement": {
        "id": 49,
        "user": {
          "id": 115,
          "first_name": "J'øhn103",
          "last_name": "D'øe101",
          "name": "J'øhn103 D'øe101",
          "html_name": "J&#39;øhn103 D&#39;øe101",
          "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
          "avatars": {
            "is_system_default": true,
            "id": null,
            "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
            "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
            "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
            "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
            "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
          },
          "username": "Jøhn103Døe101",
          "active": true,
          "terminated": false,
          "inactive": false,
          "role": "member",
          "type": "User",
          "title": null,
          "out_of_office": false,
          "out_of_office_on": null,
          "back_in_office_on": null,
          "company_login": null
        },
        "title": "enabled badge 1 & øther things Thanks to @Jøhn104Døe102",
        "body": "way awesome 2",
        "html_body": "<div class=\"markdown-body\"><p>way awesome 2</p></div>",
        "action": "gave thanks",
        "verb": null,
        "message_type": "thanks",
        "icon": null,
        "url": "https://socialcast.socialcast.test/api/messages/49",
        "permalink_url": "https://socialcast.socialcast.test/messages/49",
        "external_url": null,
        "created_at": "2017-11-17T18:48:07+00:00",
        "updated_at": "2017-11-17T18:48:07+00:00",
        "attachments": [],
        "media_files": [],
        "contains_url_only": null,
        "external_resources": [],
        "tags": [],
        "last_interacted_at": 1510944487,
        "group": {},
        "category_id": null,
        "recipients": [
          {
            "id": 116,
            "first_name": "J'øhn104",
            "last_name": "D'øe102",
            "name": "J'øhn104 D'øe102",
            "html_name": "J&#39;øhn104 D&#39;øe102",
            "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
            "avatars": {
              "is_system_default": true,
              "id": null,
              "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
              "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
              "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
              "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
              "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
            },
            "username": "Jøhn104Døe102",
            "active": true,
            "terminated": false,
            "inactive": false,
            "role": "member",
            "type": "User",
            "title": null,
            "out_of_office": false,
            "out_of_office_on": null,
            "back_in_office_on": null,
            "company_login": null,
            "mention_name": "Jøhn104Døe102"
          }
        ],
        "thumbnail_url": null,
        "player_url": null,
        "player_params": null,
        "likable": false,
        "ratable": false,
        "rating": null,
        "ratings_average": null,
        "ratings_count": null,
        "editable": true,
        "deletable": true,
        "watchable": false,
        "watch": null,
        "flag": null,
        "source": {
          "name": "web",
          "formal_name": "Web App",
          "id": "web"
        },
        "poll": null,
        "embed": null,
        "hidden": null,
        "subscribed": null,
        "groups": [],
        "extensions": [
          {
            "extension_type": "thanks_announcement",
            "recipient": {
              "id": 116,
              "first_name": "J'øhn104",
              "last_name": "D'øe102",
              "name": "J'øhn104 D'øe102",
              "html_name": "J&#39;øhn104 D&#39;øe102",
              "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
              "avatars": {
                "is_system_default": true,
                "id": null,
                "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
                "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
                "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
                "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
                "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
              },
              "username": "Jøhn104Døe102",
              "active": true,
              "terminated": false,
              "inactive": false,
              "role": "member",
              "type": "User",
              "title": null,
              "out_of_office": false,
              "out_of_office_on": null,
              "back_in_office_on": null,
              "company_login": null
            },
            "recipients": [
              {
                "id": 116,
                "first_name": "J'øhn104",
                "last_name": "D'øe102",
                "name": "J'øhn104 D'øe102",
                "html_name": "J&#39;øhn104 D&#39;øe102",
                "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
                "avatars": {
                  "is_system_default": true,
                  "id": null,
                  "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
                  "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
                  "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
                  "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
                  "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
                },
                "username": "Jøhn104Døe102",
                "active": true,
                "terminated": false,
                "inactive": false,
                "role": "member",
                "type": "User",
                "title": null,
                "out_of_office": false,
                "out_of_office_on": null,
                "back_in_office_on": null,
                "company_login": null
              }
            ],
            "badge": {
              "id": 73,
              "name": "enabled badge 1 & øther things",
              "description": "enabled badge1 description & øther things",
              "url": "https://socialcast.socialcast.test/badges/73",
              "images": {
                "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
                "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
                "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
                "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
              }
            },
            "in_reference_to": null
          }
        ],
        "new_group_id": null,
        "new_group_archived_at": null,
        "days_of_stickiness": 0,
        "sticky_for_current_user": false,
        "shareable": false,
        "share_count": 0,
        "client_provided_guid": null,
        "comments_count": 0,
        "comments": [],
        "likes": [],
        "likes_count": 0,
        "shared_message": null,
        "commentable": true
      },
      "id": 2,
      "body": "way awesome 2",
      "image_url": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
      "source": {
        "name": "web",
        "formal_name": "Web App",
        "id": "web"
      }
    },
    {
      "badge": {
        "id": 73,
        "name": "enabled badge 1 & øther things",
        "description": "enabled badge1 description & øther things",
        "url": "https://socialcast.socialcast.test/badges/73",
        "images": {
          "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
          "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
          "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
          "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
        }
      },
      "user": {
        "contact_info": {
          "email": "active'101@socialcast.com"
        },
        "manager": null,
        "custom_fields": [],
        "followable": true,
        "contact_id": null,
        "following_count": 0,
        "followers_count": 0,
        "status_message": null,
        "id": 116,
        "first_name": "J'øhn104",
        "last_name": "D'øe102",
        "name": "J'øhn104 D'øe102",
        "html_name": "J&#39;øhn104 D&#39;øe102",
        "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn104Døe102",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "recipient": {
        "contact_info": {
          "email": "active'100@socialcast.com"
        },
        "manager": null,
        "custom_fields": [],
        "followable": false,
        "contact_id": null,
        "following_count": 0,
        "followers_count": 0,
        "status_message": null,
        "id": 115,
        "first_name": "J'øhn103",
        "last_name": "D'øe101",
        "name": "J'øhn103 D'øe101",
        "html_name": "J&#39;øhn103 D&#39;øe101",
        "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn103Døe101",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "recipients": [
        {
          "contact_info": {
            "email": "active'100@socialcast.com"
          },
          "manager": null,
          "custom_fields": [],
          "followable": false,
          "contact_id": null,
          "following_count": 0,
          "followers_count": 0,
          "status_message": null,
          "id": 115,
          "first_name": "J'øhn103",
          "last_name": "D'øe101",
          "name": "J'øhn103 D'øe101",
          "html_name": "J&#39;øhn103 D&#39;øe101",
          "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
          "avatars": {
            "is_system_default": true,
            "id": null,
            "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
            "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
            "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
            "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
            "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
          },
          "username": "Jøhn103Døe101",
          "active": true,
          "terminated": false,
          "inactive": false,
          "role": "member",
          "type": "User",
          "title": null,
          "out_of_office": false,
          "out_of_office_on": null,
          "back_in_office_on": null,
          "company_login": null
        }
      ],
      "announcement": {
        "id": 50,
        "user": {
          "id": 116,
          "first_name": "J'øhn104",
          "last_name": "D'øe102",
          "name": "J'øhn104 D'øe102",
          "html_name": "J&#39;øhn104 D&#39;øe102",
          "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
          "avatars": {
            "is_system_default": true,
            "id": null,
            "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
            "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
            "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
            "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
            "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
          },
          "username": "Jøhn104Døe102",
          "active": true,
          "terminated": false,
          "inactive": false,
          "role": "member",
          "type": "User",
          "title": null,
          "out_of_office": false,
          "out_of_office_on": null,
          "back_in_office_on": null,
          "company_login": null
        },
        "title": "enabled badge 1 & øther things Thanks to @Jøhn103Døe101",
        "body": "way awesome 3",
        "html_body": "<div class=\"markdown-body\"><p>way awesome 3</p></div>",
        "action": "gave thanks",
        "verb": null,
        "message_type": "thanks",
        "icon": null,
        "url": "https://socialcast.socialcast.test/api/messages/50",
        "permalink_url": "https://socialcast.socialcast.test/messages/50",
        "external_url": null,
        "created_at": "2017-11-17T18:48:07+00:00",
        "updated_at": "2017-11-17T18:48:07+00:00",
        "attachments": [],
        "media_files": [],
        "contains_url_only": null,
        "external_resources": [],
        "tags": [],
        "last_interacted_at": 1510944487,
        "group": {},
        "category_id": null,
        "recipients": [
          {
            "id": 115,
            "first_name": "J'øhn103",
            "last_name": "D'øe101",
            "name": "J'øhn103 D'øe101",
            "html_name": "J&#39;øhn103 D&#39;øe101",
            "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
            "avatars": {
              "is_system_default": true,
              "id": null,
              "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
              "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
              "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
              "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
              "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
            },
            "username": "Jøhn103Døe101",
            "active": true,
            "terminated": false,
            "inactive": false,
            "role": "member",
            "type": "User",
            "title": null,
            "out_of_office": false,
            "out_of_office_on": null,
            "back_in_office_on": null,
            "company_login": null,
            "mention_name": "Jøhn103Døe101"
          }
        ],
        "thumbnail_url": null,
        "player_url": null,
        "player_params": null,
        "likable": true,
        "ratable": false,
        "rating": null,
        "ratings_average": null,
        "ratings_count": null,
        "editable": false,
        "deletable": false,
        "watchable": false,
        "watch": null,
        "flag": null,
        "source": {
          "name": "web",
          "formal_name": "Web App",
          "id": "web"
        },
        "poll": null,
        "embed": null,
        "hidden": null,
        "subscribed": null,
        "groups": [],
        "extensions": [
          {
            "extension_type": "thanks_announcement",
            "recipient": {
              "id": 115,
              "first_name": "J'øhn103",
              "last_name": "D'øe101",
              "name": "J'øhn103 D'øe101",
              "html_name": "J&#39;øhn103 D&#39;øe101",
              "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
              "avatars": {
                "is_system_default": true,
                "id": null,
                "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
                "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
                "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
                "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
                "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
              },
              "username": "Jøhn103Døe101",
              "active": true,
              "terminated": false,
              "inactive": false,
              "role": "member",
              "type": "User",
              "title": null,
              "out_of_office": false,
              "out_of_office_on": null,
              "back_in_office_on": null,
              "company_login": null
            },
            "recipients": [
              {
                "id": 115,
                "first_name": "J'øhn103",
                "last_name": "D'øe101",
                "name": "J'øhn103 D'øe101",
                "html_name": "J&#39;øhn103 D&#39;øe101",
                "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
                "avatars": {
                  "is_system_default": true,
                  "id": null,
                  "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
                  "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
                  "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
                  "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
                  "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
                },
                "username": "Jøhn103Døe101",
                "active": true,
                "terminated": false,
                "inactive": false,
                "role": "member",
                "type": "User",
                "title": null,
                "out_of_office": false,
                "out_of_office_on": null,
                "back_in_office_on": null,
                "company_login": null
              }
            ],
            "badge": {
              "id": 73,
              "name": "enabled badge 1 & øther things",
              "description": "enabled badge1 description & øther things",
              "url": "https://socialcast.socialcast.test/badges/73",
              "images": {
                "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
                "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
                "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
                "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
              }
            },
            "in_reference_to": null
          }
        ],
        "new_group_id": null,
        "new_group_archived_at": null,
        "days_of_stickiness": 0,
        "sticky_for_current_user": false,
        "shareable": false,
        "share_count": 0,
        "client_provided_guid": null,
        "comments_count": 0,
        "comments": [],
        "likes": [],
        "likes_count": 0,
        "shared_message": null,
        "commentable": true
      },
      "id": 3,
      "body": "way awesome 3",
      "image_url": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
      "source": {
        "name": "web",
        "formal_name": "Web App",
        "id": "web"
      }
    }
  ]
}

POST /api/thanks
send thanks to a recipient

Success Response Code: 201

Params

Param name Description
thanks
required

Value: Must be a Hash
thanks[body]
required

custom message for the thanks text


Value: Must be a String
thanks[badge_id]
required

unique identifier of the Badge for the thanks


Value: Must be a Integer
thanks[recipient_id]
optional

Deprecated: use recipient_ids. If this value is passed it will create a Thanks with a single recipient.


Value: Must be a Integer
thanks[recipient_ids]
optional

unique identifiers of the Users to send thanks to


Value: Must be an array of any type
thanks[in_reference_to_type]
optional

type of the reference, 'SocialObject' for a message and 'Comment' for a comment


Value: Must be a String
thanks[in_reference_to_id]
optional

unique identifier of the reference


Value: Must be a Integer
attachment
optional

Value: Must be an Array of nested elements
attachment[data]
optional

file to attach to the thanks


Value: Must be a File
attachment_id
optional

array of existing attachment ids to attach to the message


Value: Must be an array of Integer

Response Fields

thanks[id] id of newly created thanks Integer
thanks[body] the custom message of thanks text String
thanks[badge] badge used for sending thanks Badge
thanks[user] information about the User that sent thanks User
thanks[recipient] Deprecated: use thanks[recipients]. Will contain the first value from thanks[recipients]. User
thanks[recipients] recipient information about the Users that received thanks Array[User]
thanks[announcement] stream message broadcast for the sent thanks Message

Example Curl Commands

curl -X POST -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/thanks.json" -H"Content-Type: application/json" -d'{"thanks":{"body":"You really helped me out!","badge_id":1,"recipient_ids":[21]}}'
curl -X POST -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/thanks.json" -H"Content-Type: application/json" -d'{"thanks":{"body":"The two of you really helped me out!","badge_id":1,"recipient_ids":[21,26]}}'
curl -X POST -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/thanks.json" -H"Content-Type: application/json" -d'{"thanks":{"body":"You really helped me out!","badge_id":1,"recipient_ids":[26],"in_reference_to_type":"SocialObject","in_reference_to_id":16}}'
curl -X POST -v --basic -u "emily@socialcast.com:demo" "https://demo.socialcast.com/api/thanks.json" -F'thanks[body]="You really helped me out!"' -F 'thanks[badge_id]=1' -F'thanks[recipient_ids][]=21' -F'attachment[][data]=@/path/to/file.ext'

Examples

POST /thanks.json
{
  "thanks": {
    "badge_id": "73",
    "body": "awesomest",
    "recipient_id": "116"
  }
}
201
{
  "thanks": {
    "badge": {
      "id": 73,
      "name": "enabled badge 1 & øther things",
      "description": "enabled badge1 description & øther things",
      "url": "https://socialcast.socialcast.test/badges/73",
      "images": {
        "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
        "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
        "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
        "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
      }
    },
    "user": {
      "contact_info": {
        "email": "active'100@socialcast.com"
      },
      "manager": null,
      "custom_fields": [],
      "followable": false,
      "contact_id": null,
      "following_count": 0,
      "followers_count": 0,
      "status_message": null,
      "id": 115,
      "first_name": "J'øhn103",
      "last_name": "D'øe101",
      "name": "J'øhn103 D'øe101",
      "html_name": "J&#39;øhn103 D&#39;øe101",
      "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
      "avatars": {
        "is_system_default": true,
        "id": null,
        "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
        "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
        "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
        "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
        "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
      },
      "username": "Jøhn103Døe101",
      "active": true,
      "terminated": false,
      "inactive": false,
      "role": "member",
      "type": "User",
      "title": null,
      "out_of_office": false,
      "out_of_office_on": null,
      "back_in_office_on": null,
      "company_login": null
    },
    "recipient": {
      "contact_info": {
        "email": "active'101@socialcast.com"
      },
      "manager": null,
      "custom_fields": [],
      "followable": true,
      "contact_id": null,
      "following_count": 0,
      "followers_count": 0,
      "status_message": null,
      "id": 116,
      "first_name": "J'øhn104",
      "last_name": "D'øe102",
      "name": "J'øhn104 D'øe102",
      "html_name": "J&#39;øhn104 D&#39;øe102",
      "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
      "avatars": {
        "is_system_default": true,
        "id": null,
        "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
        "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
        "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
        "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
        "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
      },
      "username": "Jøhn104Døe102",
      "active": true,
      "terminated": false,
      "inactive": false,
      "role": "member",
      "type": "User",
      "title": null,
      "out_of_office": false,
      "out_of_office_on": null,
      "back_in_office_on": null,
      "company_login": null
    },
    "recipients": [
      {
        "contact_info": {
          "email": "active'101@socialcast.com"
        },
        "manager": null,
        "custom_fields": [],
        "followable": true,
        "contact_id": null,
        "following_count": 0,
        "followers_count": 0,
        "status_message": null,
        "id": 116,
        "first_name": "J'øhn104",
        "last_name": "D'øe102",
        "name": "J'øhn104 D'øe102",
        "html_name": "J&#39;øhn104 D&#39;øe102",
        "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn104Døe102",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      }
    ],
    "announcement": {
      "id": 51,
      "user": {
        "id": 115,
        "first_name": "J'øhn103",
        "last_name": "D'øe101",
        "name": "J'øhn103 D'øe101",
        "html_name": "J&#39;øhn103 D&#39;øe101",
        "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn103Døe101",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "title": "enabled badge 1 & øther things Thanks to @Jøhn104Døe102",
      "body": "awesomest",
      "html_body": "<div class=\"markdown-body\"><p>awesomest</p></div>",
      "action": "gave thanks",
      "verb": null,
      "message_type": "thanks",
      "icon": null,
      "url": "https://socialcast.socialcast.test/api/messages/51",
      "permalink_url": "https://socialcast.socialcast.test/messages/51",
      "external_url": null,
      "created_at": "2017-11-17T18:48:08+00:00",
      "updated_at": "2017-11-17T18:48:08+00:00",
      "attachments": [],
      "media_files": [],
      "contains_url_only": null,
      "external_resources": [],
      "tags": [],
      "last_interacted_at": 1510944488,
      "group": {},
      "category_id": null,
      "recipients": [
        {
          "id": 116,
          "first_name": "J'øhn104",
          "last_name": "D'øe102",
          "name": "J'øhn104 D'øe102",
          "html_name": "J&#39;øhn104 D&#39;øe102",
          "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
          "avatars": {
            "is_system_default": true,
            "id": null,
            "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
            "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
            "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
            "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
            "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
          },
          "username": "Jøhn104Døe102",
          "active": true,
          "terminated": false,
          "inactive": false,
          "role": "member",
          "type": "User",
          "title": null,
          "out_of_office": false,
          "out_of_office_on": null,
          "back_in_office_on": null,
          "company_login": null,
          "mention_name": "Jøhn104Døe102"
        }
      ],
      "thumbnail_url": null,
      "player_url": null,
      "player_params": null,
      "likable": false,
      "ratable": false,
      "rating": null,
      "ratings_average": null,
      "ratings_count": null,
      "editable": true,
      "deletable": true,
      "watchable": false,
      "watch": null,
      "flag": null,
      "source": {
        "name": "web",
        "formal_name": "Web App",
        "id": "web"
      },
      "poll": null,
      "embed": null,
      "hidden": null,
      "subscribed": null,
      "groups": [],
      "extensions": [
        {
          "extension_type": "thanks_announcement",
          "recipient": {
            "id": 116,
            "first_name": "J'øhn104",
            "last_name": "D'øe102",
            "name": "J'øhn104 D'øe102",
            "html_name": "J&#39;øhn104 D&#39;øe102",
            "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
            "avatars": {
              "is_system_default": true,
              "id": null,
              "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
              "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
              "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
              "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
              "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
            },
            "username": "Jøhn104Døe102",
            "active": true,
            "terminated": false,
            "inactive": false,
            "role": "member",
            "type": "User",
            "title": null,
            "out_of_office": false,
            "out_of_office_on": null,
            "back_in_office_on": null,
            "company_login": null
          },
          "recipients": [
            {
              "id": 116,
              "first_name": "J'øhn104",
              "last_name": "D'øe102",
              "name": "J'øhn104 D'øe102",
              "html_name": "J&#39;øhn104 D&#39;øe102",
              "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
              "avatars": {
                "is_system_default": true,
                "id": null,
                "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
                "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
                "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
                "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
                "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
              },
              "username": "Jøhn104Døe102",
              "active": true,
              "terminated": false,
              "inactive": false,
              "role": "member",
              "type": "User",
              "title": null,
              "out_of_office": false,
              "out_of_office_on": null,
              "back_in_office_on": null,
              "company_login": null
            }
          ],
          "badge": {
            "id": 73,
            "name": "enabled badge 1 & øther things",
            "description": "enabled badge1 description & øther things",
            "url": "https://socialcast.socialcast.test/badges/73",
            "images": {
              "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
              "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
              "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
              "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
            }
          },
          "in_reference_to": null
        }
      ],
      "new_group_id": null,
      "new_group_archived_at": null,
      "days_of_stickiness": 0,
      "sticky_for_current_user": false,
      "shareable": false,
      "share_count": 0,
      "client_provided_guid": null,
      "comments_count": 0,
      "comments": [],
      "likes": [],
      "likes_count": 0,
      "shared_message": null,
      "commentable": true
    },
    "id": 4,
    "body": "awesomest",
    "image_url": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
    "source": {
      "name": "web",
      "formal_name": "Web App",
      "id": "web"
    }
  }
}
POST /thanks.json
{
  "thanks": {
    "badge_id": "73",
    "body": "awesomest",
    "recipient_ids": [
      "116",
      "119"
    ]
  }
}
201
{
  "thanks": {
    "badge": {
      "id": 73,
      "name": "enabled badge 1 & øther things",
      "description": "enabled badge1 description & øther things",
      "url": "https://socialcast.socialcast.test/badges/73",
      "images": {
        "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
        "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
        "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
        "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
      }
    },
    "user": {
      "contact_info": {
        "email": "active'100@socialcast.com"
      },
      "manager": null,
      "custom_fields": [],
      "followable": false,
      "contact_id": null,
      "following_count": 0,
      "followers_count": 0,
      "status_message": null,
      "id": 115,
      "first_name": "J'øhn103",
      "last_name": "D'øe101",
      "name": "J'øhn103 D'øe101",
      "html_name": "J&#39;øhn103 D&#39;øe101",
      "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
      "avatars": {
        "is_system_default": true,
        "id": null,
        "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
        "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
        "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
        "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
        "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
      },
      "username": "Jøhn103Døe101",
      "active": true,
      "terminated": false,
      "inactive": false,
      "role": "member",
      "type": "User",
      "title": null,
      "out_of_office": false,
      "out_of_office_on": null,
      "back_in_office_on": null,
      "company_login": null
    },
    "recipient": {
      "contact_info": {
        "email": "active'101@socialcast.com"
      },
      "manager": null,
      "custom_fields": [],
      "followable": true,
      "contact_id": null,
      "following_count": 0,
      "followers_count": 0,
      "status_message": null,
      "id": 116,
      "first_name": "J'øhn104",
      "last_name": "D'øe102",
      "name": "J'øhn104 D'øe102",
      "html_name": "J&#39;øhn104 D&#39;øe102",
      "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
      "avatars": {
        "is_system_default": true,
        "id": null,
        "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
        "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
        "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
        "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
        "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
      },
      "username": "Jøhn104Døe102",
      "active": true,
      "terminated": false,
      "inactive": false,
      "role": "member",
      "type": "User",
      "title": null,
      "out_of_office": false,
      "out_of_office_on": null,
      "back_in_office_on": null,
      "company_login": null
    },
    "recipients": [
      {
        "contact_info": {
          "email": "active'101@socialcast.com"
        },
        "manager": null,
        "custom_fields": [],
        "followable": true,
        "contact_id": null,
        "following_count": 0,
        "followers_count": 0,
        "status_message": null,
        "id": 116,
        "first_name": "J'øhn104",
        "last_name": "D'øe102",
        "name": "J'øhn104 D'øe102",
        "html_name": "J&#39;øhn104 D&#39;øe102",
        "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn104Døe102",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      {
        "contact_info": {
          "email": "active'104@socialcast.com"
        },
        "manager": null,
        "custom_fields": [],
        "followable": true,
        "contact_id": null,
        "following_count": 0,
        "followers_count": 0,
        "status_message": null,
        "id": 119,
        "first_name": "J'øhn107",
        "last_name": "D'øe105",
        "name": "J'øhn107 D'øe105",
        "html_name": "J&#39;øhn107 D&#39;øe105",
        "url": "https://socialcast.socialcast.test/users/119-j%C3%B8hn107d%C3%B8e105",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn107Døe105",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      }
    ],
    "announcement": {
      "id": 52,
      "user": {
        "id": 115,
        "first_name": "J'øhn103",
        "last_name": "D'øe101",
        "name": "J'øhn103 D'øe101",
        "html_name": "J&#39;øhn103 D&#39;øe101",
        "url": "https://socialcast.socialcast.test/users/115-j%C3%B8hn103d%C3%B8e101",
        "avatars": {
          "is_system_default": true,
          "id": null,
          "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
          "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
          "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
          "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
          "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
        },
        "username": "Jøhn103Døe101",
        "active": true,
        "terminated": false,
        "inactive": false,
        "role": "member",
        "type": "User",
        "title": null,
        "out_of_office": false,
        "out_of_office_on": null,
        "back_in_office_on": null,
        "company_login": null
      },
      "title": "enabled badge 1 & øther things Thanks to @Jøhn104Døe102 @Jøhn107Døe105",
      "body": "awesomest",
      "html_body": "<div class=\"markdown-body\"><p>awesomest</p></div>",
      "action": "gave thanks",
      "verb": null,
      "message_type": "thanks",
      "icon": null,
      "url": "https://socialcast.socialcast.test/api/messages/52",
      "permalink_url": "https://socialcast.socialcast.test/messages/52",
      "external_url": null,
      "created_at": "2017-11-17T18:48:08+00:00",
      "updated_at": "2017-11-17T18:48:08+00:00",
      "attachments": [],
      "media_files": [],
      "contains_url_only": null,
      "external_resources": [],
      "tags": [],
      "last_interacted_at": 1510944488,
      "group": {},
      "category_id": null,
      "recipients": [
        {
          "id": 116,
          "first_name": "J'øhn104",
          "last_name": "D'øe102",
          "name": "J'øhn104 D'øe102",
          "html_name": "J&#39;øhn104 D&#39;øe102",
          "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
          "avatars": {
            "is_system_default": true,
            "id": null,
            "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
            "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
            "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
            "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
            "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
          },
          "username": "Jøhn104Døe102",
          "active": true,
          "terminated": false,
          "inactive": false,
          "role": "member",
          "type": "User",
          "title": null,
          "out_of_office": false,
          "out_of_office_on": null,
          "back_in_office_on": null,
          "company_login": null,
          "mention_name": "Jøhn104Døe102"
        },
        {
          "id": 119,
          "first_name": "J'øhn107",
          "last_name": "D'øe105",
          "name": "J'øhn107 D'øe105",
          "html_name": "J&#39;øhn107 D&#39;øe105",
          "url": "https://socialcast.socialcast.test/users/119-j%C3%B8hn107d%C3%B8e105",
          "avatars": {
            "is_system_default": true,
            "id": null,
            "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
            "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
            "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
            "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
            "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
          },
          "username": "Jøhn107Døe105",
          "active": true,
          "terminated": false,
          "inactive": false,
          "role": "member",
          "type": "User",
          "title": null,
          "out_of_office": false,
          "out_of_office_on": null,
          "back_in_office_on": null,
          "company_login": null,
          "mention_name": "Jøhn107Døe105"
        }
      ],
      "thumbnail_url": null,
      "player_url": null,
      "player_params": null,
      "likable": false,
      "ratable": false,
      "rating": null,
      "ratings_average": null,
      "ratings_count": null,
      "editable": true,
      "deletable": true,
      "watchable": false,
      "watch": null,
      "flag": null,
      "source": {
        "name": "web",
        "formal_name": "Web App",
        "id": "web"
      },
      "poll": null,
      "embed": null,
      "hidden": null,
      "subscribed": null,
      "groups": [],
      "extensions": [
        {
          "extension_type": "thanks_announcement",
          "recipient": {
            "id": 116,
            "first_name": "J'øhn104",
            "last_name": "D'øe102",
            "name": "J'øhn104 D'øe102",
            "html_name": "J&#39;øhn104 D&#39;øe102",
            "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
            "avatars": {
              "is_system_default": true,
              "id": null,
              "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
              "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
              "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
              "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
              "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
            },
            "username": "Jøhn104Døe102",
            "active": true,
            "terminated": false,
            "inactive": false,
            "role": "member",
            "type": "User",
            "title": null,
            "out_of_office": false,
            "out_of_office_on": null,
            "back_in_office_on": null,
            "company_login": null
          },
          "recipients": [
            {
              "id": 116,
              "first_name": "J'øhn104",
              "last_name": "D'øe102",
              "name": "J'øhn104 D'øe102",
              "html_name": "J&#39;øhn104 D&#39;øe102",
              "url": "https://socialcast.socialcast.test/users/116-j%C3%B8hn104d%C3%B8e102",
              "avatars": {
                "is_system_default": true,
                "id": null,
                "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
                "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
                "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
                "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
                "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
              },
              "username": "Jøhn104Døe102",
              "active": true,
              "terminated": false,
              "inactive": false,
              "role": "member",
              "type": "User",
              "title": null,
              "out_of_office": false,
              "out_of_office_on": null,
              "back_in_office_on": null,
              "company_login": null
            },
            {
              "id": 119,
              "first_name": "J'øhn107",
              "last_name": "D'øe105",
              "name": "J'øhn107 D'øe105",
              "html_name": "J&#39;øhn107 D&#39;øe105",
              "url": "https://socialcast.socialcast.test/users/119-j%C3%B8hn107d%C3%B8e105",
              "avatars": {
                "is_system_default": true,
                "id": null,
                "square16": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square16-3b951350d61d203ece2fa5dd274fa7bd35275e132c17310d9006514f8839c857.png",
                "square30": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square30-6db66ac25c338d1e548a68465e2723ff63367c2aafbcc01db24c83964056b892.png",
                "square45": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square45-16865426333e244c59076d4f2475b711ed1ff9d12c97f4cf354f373a0170a1fd.png",
                "square70": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square70-1708999e8f1fea583408d7fc64b2177f853e4123bea2ffcf35f4839c8697e0ba.png",
                "square140": "https://socialcast.socialcast.test/assets-test/v6/avatars/default_user_square140-7da7e1d98b33ef152280b1f653cfd80e2db24b01b625a72abc320673eea5af53.png"
              },
              "username": "Jøhn107Døe105",
              "active": true,
              "terminated": false,
              "inactive": false,
              "role": "member",
              "type": "User",
              "title": null,
              "out_of_office": false,
              "out_of_office_on": null,
              "back_in_office_on": null,
              "company_login": null
            }
          ],
          "badge": {
            "id": 73,
            "name": "enabled badge 1 & øther things",
            "description": "enabled badge1 description & øther things",
            "url": "https://socialcast.socialcast.test/badges/73",
            "images": {
              "square30": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square30.png",
              "square45": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
              "square70": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square70.png",
              "square140": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square140.png"
            }
          },
          "in_reference_to": null
        }
      ],
      "new_group_id": null,
      "new_group_archived_at": null,
      "days_of_stickiness": 0,
      "sticky_for_current_user": false,
      "shareable": false,
      "share_count": 0,
      "client_provided_guid": null,
      "comments_count": 0,
      "comments": [],
      "likes": [],
      "likes_count": 0,
      "shared_message": null,
      "commentable": true
    },
    "id": 5,
    "body": "awesomest",
    "image_url": "https://socialcast.socialcast.test/images/thanks/default_badges/visionary_square45.png",
    "source": {
      "name": "web",
      "formal_name": "Web App",
      "id": "web"
    }
  }
}