Skip to main content

API Login

This article tells you how to authenticate into the OpsAnalitica API

S
Written by Support Manager
Updated over 2 years ago

  1. Authenticate: you have to authenticate so the app knows who you are.

    1. User Name and Password

    2. Getting a Token (JWT)

    3. Token:

      1. Tokens are immutable, unchangeable

      2. You get 1 token per org.

      3. Tokens work in one organization only

      4. If you want to switch organizations you need to get a new token.

    4. Refresh Token is used to get new tokens

      1. To switch orgs

      2. To refresh an expired token

      3. You can use your refresh token as long as you need to unless you change a security parameter, password or email address, or sign out.

  2. Post /api/account/login:

    1. Username

    2. Password

    3. Remember: null

    4. OrgId: Null

    5. Token: 1

    6. Returns a Token

  3. For Swagger we need to Authorize

    1. Bearer and paste token between the β€œβ€


Did this answer your question?