Create Check-in

Public Beta Feature

This documentation covers a feature currently in Public Beta. Access is available to anyone interested in building personalized experiences for their end-users.

This feature is subject to the Personalization API (Self-Service) Public Beta End user License Agreement.

Parameters

Response

Successful Check-in Addition Response

200

Example Code

curl --request POST \
     --url https://api.foursquare.com/v2/checkins/add \
     --header 'accept: application/json'

Example Response

{
  "meta": {
    "code": 200,
    "requestId": "6421f092f5e2da1fdeb4f888"
  },
  "notifications": [
    {
      "type": "notificationTray",
      "item": {
        "unreadCount": 3
      }
    },
    {
      "type": "unconfirmed",
      "item": {
        "unreadCount": 0
      }
    }
  ],
  "response": {
    "checkin": {
      "id": "6421f0405c8d094658112a56",
      "createdAt": 1679945792,
      "type": "checkin",
      "timeZoneOffset": -420,
      "editableUntil": 1680032192000,
      "user": {
        "id": "12345678",
        "firstName": "John",
        "lastName": "Smith",
        "gender": "male",
        "address": "",
        "city": "",
        "state": "",
        "countryCode": "US",
        "relationship": "self",
        "photo": {
          "prefix": "https://fastly.4sqi.net/img/user/",
          "suffix": "/blank_boy.png"
        },
        "isAnonymous": false
      },
      "venue": {
        "id": "4b88822df964a52018fd31e3",
        "name": "Lucky Dragon - Chinese Restaurant"
      },
      "source": {
        "name": "Foursquare for iOS",
        "url": "https://foursquare.com/download/#/iphone"
      },
      "photos": {
        "count": 0,
        "items": []
      },
      "posts": {
        "count": 0,
        "textCount": 0
      },
      "checkinShortUrl": "https://www.swarmapp.com/user/123456/checkin/6421f0405c8d094658112a56?s=qtRZqSvVhWt8pNB8fFUsjbMaoLM",
      "likes": {
        "count": 0,
        "groups": []
      },
      "like": false,
      "comments": {
        "count": 0,
        "items": []
      },
      "isMayor": false,
      "score": {
        "total": 0
      }
    },
    "notifications": [
      {
        "type": "message",
        "item": {
          "message": "You've been here 2 times!",
          "entities": [
            {
              "indices": [
                17,
                18
              ],
              "type": "count",
              "value": 2
            }
          ]
        },
        "alert": false
      }
    ],
    "notificationsOrder": [
      "score",
      "leaderboard",
      "replies"
    ]
  }
}