This endpoint may be used to get information of account sessions and modify them.
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 |
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 |
Gets all available tokens for the current user.
Requires authorization
Returns multiple Token objects.
Invalidates the passed token.
Requires authorization
Property | Type | Description |
---|---|---|
id | string | The of the Token to invalidate |
Validates the current Token.
Requires authorization
Property | Type | Description |
---|---|---|
status | string | The status of the Token |
user | User | The User that owns this Token |