Authentication

Step 2: Authenticate your API client for an access token to authorize subsequent requests.

OAuth2 Authentication Standard

Pymlo uses OAuth2 for authentication. OAuth2 is an authorization framework that enables applications to obtain limited access to user accounts over HTTP, and is used by services like Google, Facebook, Stripe, and Slack. This method creates a token that lasts for 12 hours to keep your account secure and connected. For more details about how OAuth2 itself, check out: the official documentation.

Full Access Client

post
Request for Access Token

https://api.pymlo.com/oauth/token
Request
Response
Request
Headers
Authorization
required
string
The client ID and secret sent as a Basic Auth header, eg. "Basic XXXXXXXXXX"
Query Parameters
scope
required
string
Authorized scope to use the resource server. Allowed scopes are "read" and "write".
grant_type
required
string
Authentication grant type. Set to client_credentials
Response
200: OK
Access token issued successfully
{
"access_token":"<a-long-alphanumeric-string>",
"token_type":"bearer",
"expires_in":43199,
"scope":"read write",
"jti":"<a-shorter-alphanumeric-string>"
}
401: Unauthorized
Bad credentials (incorrect client id and/or client secret)
‚Äč