Authentication

Information relating to authenticating with the 1 Tiny Link API.

post
Account Login

https://1tinylink.com/api/v1/login
This endpoint allows you to authenticate with our Restful API to generate a JSON Web Token for your account to authorize further requests to our API resources.
Request
Response
Request
Headers
Accept
required
string
application/json
Content-Type
required
string
application/json
Form Data Parameters
email
required
string
Your account email address
password
required
string
Your account password
Response
200: OK
Credentials validated & JSON Web Token provided.
{
"name": "yorda",
"subTier": "Premium Subscription",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUxdGlueWxpbmtjbk2kdmblRVjQ...",
"token_type": "bearer",
"expires_in": 3600
}
400: Bad Request
Check your request.
{
"status": 400,
"error": "Bad Request"
}
401: Unauthorized
Unauthorized or invalid credentials.
{
"error": true,
"message": "Invalid Credentials"
}

post
Account Refresh

https://1tinylink.com/api/v1/refresh
This endpoint allows you to refresh an expired JSON Web Token.
Request
Response
Request
Headers
Authorization
required
string
Bearer JSON_Web_Token
Response
200: OK
Successfully refreshed your JSON Web Token.
{
"name": "yorda",
"subTier": "Premium Subscription",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUxdGlueWxpbmtjb20ubG9jYWxcL2RVjQ...",
"token_type": "bearer",
"expires_in": 3600
}
401: Unauthorized
{
"status":401,
"error":"Unauthorized"
}

​