Back

API

Your API_KEY:
Base URL:
https://back.tourist.com

Check user by profile URL or nickname

POST
/api/v1/identify/url
Headers
Authorization
Example:Bearer <API_KEY>
Content-Type
Example:application/json
Accept
Example:application/json
Body Parameters
inputstring
Example:https://tourist.com/m/nikname | @nikname
Example request:
curl --request POST \
"https://back.tourist.com/api/v1/identify/card" \
--header "Authorization: Bearer <API_KEY>" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{ \"input\": \"https://tourist.com/m/nikname\" }"
Example response (200):
{
    "status": "ok",
    "plan": "Free",
    "card_number": "12345678",
    "nickname": "@nikname",
    "profile_url": "https://tourist.com/m/nikname"
}

Verifying a user by card number

POST
/api/v1/identify/card
Headers
Authorization
Example:Bearer <API_KEY>
Content-Type
Example:application/json
Accept
Example:application/json
Body Parameters
card_numberstring
Example:12345678
Example request:
curl --request POST \
"https://back.tourist.com/api/v1/identify/card" \
--header "Authorization: Bearer <API_KEY>" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{ \"card_number\": \"12345678\" }"
Example response (200):
{
    "status": "ok",
    "plan": "Free",
    "card_number": "12345678",
    "nickname": "@nikname",
    "profile_url": "https://tourist.com/m/nikname"
}

Errors response

Example response (404):
{
    "status": "error",
    "code": "not_found",
    "message": "User not found"
}
Example response (422):
{
    "status": "error",
    "code": "invalid_format",
    "message": "Invalid format"
}
Example response (401):
{
    "status": "error",
    "code": "token_invalid_or_expired",
    "message": "Token invalid or expired"
}