Gets the list of teams underneath a company based on the authenticated account.


HTTP

POST https://www.squidalerts.com/api/authentication/token


Request Body

NameRequiredTypeDescription
UsernameTruestringThe username / email address to login with
PasswordTruestringThe password associated with the account


Examples

Request Body

JSON

{    
    'username': 'bob@mycompany.com',
    'password': 'MySuperSecretPassword' 
}


Sample Response

Status code: 200

JSON

{    
    "email": null,    
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
    "expires_in": 3600,
    "token_type": "Bearer",
    "error": null
}


Using the Authorization Token

Tokens must be passed to subsequent API calls as a bearer token in the authorization header.


For example:


curl -H "Authorization: Bearer YourAuthorizationToken" https://www.squidalerts.com/api/teams