---
title: "Authenticates Valid User"
method: POST
path: "/Credential/authenticate"
tags: ["Authenticate"]
---

# Authenticates Valid User

`POST /Credential/authenticate`

This will provide an Authentication Token for accessing the database. This token will be appended to all data calls in the form "Authorization : Bearer " + token. The generated token is currently valid for 365 days. When it expires simply re-login and you will be given another token. Please contact Sales if the token is somehow stolen or compromised in some way. In the event you upgrade your account or otherwise make changes that are not being reflected, getting a new token will also refresh your credential information.

## Headers

- `x-api-version` string

## Request body

- UserCredentials
  - `username` string
  - `password` string

## Response `200`

User Authentication Success: Authentication Token Given

## Other responses

- `400` — User Authentication Failure: Incorrect Login Information
- `500` — Internal Server error

---

[API](https://skmtc.net/freightwaves/apis/sonar-api.md) · [All operations](https://skmtc.net/freightwaves/apis/sonar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freightwaves/sonar-api/revisions/3a995f316cda/schema)
