Tokens based

Starting v2.10 ARGOplay uses tokens authentication.

Token can be provided over _token parameter or Authorization header. Like:

Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvYXBpZGV2LmJlYXIyYi5jb21cLyIsImlhdCI6MTY1NjQ4OTExMywiZXhwIjoxNjU2NjMzNTk5LCJiYXBpX3R5cGUiOiJub3JtYWwiLCJiYXBpX2FjY2VzcyI6ImZ1bGwiLCJiYXBpX2FwcF9pZCI6MywiYmFwaV9vcmlnaW5fYWxsb3dlZCI6IiIsImJhcGlfdXNlcl9pZCI6MTU1MSwiYmFwaV9jbGllbnRfaWQiOjUsImJhcGlfcm9sZV9pZCI6MCwiYmFwaV9maXJzdF9uYW1lIjoiYmxhIiwiYmFwaV9sYXN0X25hbWUiOiJibGEiLCJiYXBpX3VzZXJfbGFzdF91cGRhdGVkX3RpbWUiOjE2NTMwNDg0OTYsInNlc3Npb25faWQiOjE2NTY0ODkxMTN9.12FJqcC8ZAE87gKnsluTsL1O8-Egj2sv9-rb5oZN1LM

ARGOplay uses tokens in JWT format. You can see content of the token by using e.g. https://jwt.io

To get a token, you can use API call POST https://api.bear2b.com/v2.13/auth/token

Parameters:

Parameter Description
email User's email or login. Required.
password User's password. Required.
app_id Application
ttl Token's time to live in seconds. Maximal value is 7 days. Minimal - 1 second
origin_allowed Comma-separated list of allowed origins. E.g. .bear2b.com,.ar-go.co
mfa_code Multi-factor authentication code