Skip to content
Account

Login

POST https://id.copyleaks.com/v3/account/login/api

Login to the Copyleaks API using your email and API key.

Once logged in, you will get back a login token that will be used to authenticate yourself when calling the other API methods.

After generating the login-token, you should attach the token for your next calls. Attaching the endpoint is done by adding this header to your calls:

Authorization: Bearer TOKEN

A generated token is valid for 48 hours. Within this period of time, you can use it multiple times. Before attaching the Authorization header for your next endpoint calls, make sure that the token has not expired. If it expired, generate a new one.

Content-Type: application/json
Accept: application/json
email string required

Your Copyleaks account email address

key string required

Your Copyleaks account API key (UUID format)

200 OK

The command was executed successfully.

Response Schema

The response contains the following fields:

access_token string
The authentication token for API access.
.issued string
The date and time when the token was issued.
.expires string
The date and time when the token will expire.

Example Response

A typical response from this endpoint:

{
"access_token": "ACLNSKNSDAACCAJANCOIUiausoo_saidjaskldjoa...",
".issued": "2018-11-24T16:15:38.2431255+02:00",
".expires": "2018-11-26T16:15:38.2431255+02:00"
}
400 Bad Request

Bad Request - Invalid request format or missing required fields

Example Response

A typical response from this endpoint:

{
"Key": [
"The key field is required."
]
}
POST https://id.copyleaks.com/v3/account/login/api
Headers
Content-Type: application/json
Body
{
"email": "[email protected]",
"key": "00000000-0000-0000-0000-000000000000"
}