Authentication - Get Token

Created by Vamshi Reddy, Modified on Mon, 1 Aug, 2022 at 7:47 AM by Vamshi Reddy

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


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article