---
title: "Get a JWT from your API credentials"
method: POST
path: "/getToken"
tags: ["Authentication"]
---

# Get a JWT from your API credentials

`POST /getToken`

This is the first function you should call. 

If you are accessing our API through a third party provider they will handle authenticating to our API for you 
and you will not need call this function or retrieve a JSON Web Token. 

All other functions require the JSON Web Token (JWT) from this function to 
be incuded in their arguments. The value of the "token" field is the actual JWT and any other values in the returned JSON
are metadata there for your convenience. Tokens are valid for a default of 1 hour (3600 seconds). If you try calling an
API endpoint with a missing, invalid, or expired JWT it will return a HTTP 403 code. You would then need to call this end point
to get a new token.

## Query parameters

- `apiID` string, required
- `apiKey` string, required

## Response `200`

Successful Response

- JSONWebToken
  - `token` string, required
  - `expires` integer
  - `createdOn` integer

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/autodealerdata/apis/cis-automotive-api.md) · [All operations](https://skmtc.dev/autodealerdata/apis/cis-automotive-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/autodealerdata/cis-automotive-api/revisions/ffe19d0f3ae1/schema)
