Documentation

GetPlayFabIDsFromKongregateIDs

Retrieves the unique PlayFab identifiers for the given set of Kongregate identifiers. The Kongregate identifiers are the IDs for the user accounts, available as "user_id" from the Kongregate API methods(ex: http://developers.kongregate.com/docs/client/getUserId).

Request Details

GetPlayFabIDsFromKongregateIDsRequest
Request Properties
KongregateIDs (required) List<String>

Array of unique Kongregate identifiers (Kongregate's user_id) for which the title needs to get PlayFab identifiers.

POST https://{{TitleID}}.playfabapi.com/Client/GetPlayFabIDsFromKongregateIDs
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{
  "KongregateIDs": [
    "857498576495",
    "759374651209"
  ]
}
        

Response Details

For Kongregate identifiers which have not been linked to PlayFab accounts, null will be returned.

GetPlayFabIDsFromKongregateIDsResult
Result Properties
Data List<KongregatePlayFabIdPair>

Mapping of Kongregate identifiers to PlayFab identifiers.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "Data": [
      {
        "KongregateId": "857498576495",
        "PlayFabId": "5a446c83645201"
      },
      {
        "KongregateId": "759374651209",
        "PlayFabId": "6345cd25a6c7cc"
      }
    ]
  }
}

Authentication

SessionTicket

Possible Error Codes

Name Code
AccountNotFound 1001