Skip to content

Authentication Endpoints (v1)

Eugene Cooper edited this page Apr 17, 2019 · 3 revisions

Check credentials (public)


Checks if specified api token and secret are valid and if account is active

  • URL

    /api/v1/auth/check

  • Method:

    POST

  • Data Params

    Required:
    token=[string]
    secret=[string]

  • Response Examples:

    • Code: 200
      Content:
{
    "error": 0,
    "msg": "ok",
    "errors": [],
    "data": {
        "user_id": 1
    }
}
  • Code: 401
    Content:
{
    "error": 1,
    "msg": "validation errors",
    "errors": {
        "secret": [
            "The secret field is required."
        ],
        "token": [
            "The token field is required."
        ]
    },
    "data": []
}
You can’t perform that action at this time.