Authentication

Authentication is done using the Bearer authentication scheme with the API key associated to your Keatext partner account. You can get your API key with a POST request:

POST /api/v2/login
Content-Type: application/json
Accept: application/json

{
    "username": "maelle.blanchette@keatext.com",
    "password": "mypassword"
}
Property Type Required Description
username string yes The email address linked to your Keatext partner account.
password string yes The password linked to your Keatext partner account.
curl -H "Content-Type: application/json" -H "Accept: application/json" -XPOST -d @credentials.json \
        https://app.keatext.ai/api/v2/login

The response is a 200 OK status code:

200
{
    "jwt": {
        "expiresIn": 604800,
        "token": "hFCSR1sPJPFW6zH.0ygrZcFrWNnJX04.CkBXBFVevJx2baZ"
    }
}
Property Description
expiresIn The number of seconds left before your API key expires (usually, 604800).
token Your API key.

results matching ""

    No results matching ""