• log in
« Go back to the home page

Token

This endpoint may be used to get information of account sessions and modify them.

The Token object

Property Type Description
id string The unique identifier of this Token (do not share this with anybody, it is equivalent to sharing your password!!)
lastIP string The last IP that was used with this token
userAgent string The last user agent that was used with this token
time string The timestamp of when this Token was created
lastAccessTime string The timestamp of when this Token was used with the API
expiry string The timestamp of when this Token will expire and be invalidated
ipStackResult ?IpStackResult Geolocation info about this Token
notifications boolean Whether or not push notifications have been accessed from this session

The IpStackResult object

Property Type Description
id integer The unique identifier of this IpStackResult
ip ?string The IP of this IpStackResult
type ?string The type of the IP address
continentCode ?string The continent code of this location
continentName ?string The continent name of this location
countryCode ?string The country code of this location
countryName ?string The country name of this location
regionCode ?string The region code of this location
regionName ?string The region name of this location
city ?string The city of this location
zipCode ?integer The zip code of this location
latitude ?float The latitude of this location
longitude ?float The longitude of this location
time string The time of when this IpStackResult was created

GET /token

Gets all available tokens for the current user.
Requires authorization

Response

Returns multiple Token objects.


DELETE /token

Invalidates the passed token.
Requires authorization

Parameters

Property Type Description
id string The of the Token to invalidate

POST /token/verify

Validates the current Token.
Requires authorization

Response

Property Type Description
status string The status of the Token
user User The User that owns this Token

© Copyright 2018-2022 Gigadrive - All rights reserved.
Contact Info • About • Terms of Service • Privacy Policy • Disclaimer • Developers