POST v1/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 authenticte yourelf when calling the other API methods.

Request Information

Body Parameters

Your Copyleaks account information.

Name Description Type Additional information
Email

Your email address

string

Required

ApiKey

Your Copyleaks API key

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Email": "YOUR_EMAIL",
  "ApiKey": "YOUR_KEY"
}

Response Information

Resource Description

Use this token to access your private Copyleaks API services.

NameDescriptionTypeAdditional information
access_token

Your API token details. Use this token to access your private Copyleaks API services.

string

Keep this value private!

.issued

Token issue date

date

None.

.expires

Token expiration date. Your token will be deactivated after this date.

date

Valid for 48 hours.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "ACLNSKNSDAACCAJANCOIUiausoo_saidjaskldjoapidkals;kd-ixK4EmvhiimF4m0IlmKc-eaIm-izTA06fUNxjWnHKbQj3oin1r9_JV9",
  ".issued": "2015-11-24T16:15:38.2431255+02:00",
  ".expires": "2015-11-24T16:15:38.2431255+02:00"
}

Common Errors

Error Code Error Message
1 Bad request. One or several required parameters are missing or incorrect.
2 Invalid login credentials.
3 To use your account, you need to confirm the email address.
4 This user is disabled. Contact support for help.

For more information, see the full errors list.