OAuth
All API requests require OAuth client grant authentication.
Creating a new token
Creates a new OAuth token for authenticating with the API.
Body
grant_typestringRequiredExample:
The grant type of the request.
client_credentialsclient_idstringRequiredExample:
Client ID provided by LOMA.
12f345e6a8client_secretstringRequiredExample:
Client secret provided by LOMA.
cek1qup4mxa!nje6FWYscopestringRequiredExample:
The scope of the grant.
upsert_salesResponses
200
Token successfully created.
application/json
401
Permission denied.
post
/oauth/tokenPOST /oauth/token HTTP/1.1
Host: api.lomafunds.com
Content-Type: application/json
Accept: */*
Content-Length: 121
{
"grant_type": "client_credentials",
"client_id": "12f345e6a8",
"client_secret": "cek1qup4mxa!nje6FWY",
"scope": "upsert_sales"
}{
"token_type": "Bearer",
"expires_in": "1800",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIzIiwianRpIjoiOTcyOTEwNGRhM2NmMmVkMTllZWYyYzZmNTkyNTExZTM1ZDgyY2FiOTk4MDk4MjFiYzRiOTRlYWQxM2Q1MTRjMWNkNDk0NDU2ODIyOWVhY2EiLCJpYXQiOjE2Mzk1MTQ1ODYuMTI2ODc3LCJuYmYiOjE2Mzk1MTQ1ODYuMTI2ODgsImV4cCI6MTY3MTA1MDU4Ni4xMjIwMzUsInN1YiI6IiIsInNjb3BlcyI6WyIqIl19.aJMeEu1olC2iDfGbnR3DnJ7R3fv9lPEiP_2DSmseaPFOq4BljrhirLrSBRpqoVazd5YHoZB-WsXWfy8l45iEqx-sbHj8_XrnhaSr-Ot9td2QuW7Tm-92U6NR20-wdCZitgYobivfyY2t1RUan6EJGQlDvTebzcXzlfAVEDYmoJ7LHeKgUlTeFZqWlib_zCuE_fitTKcz3CCwZy0vRRVasZUiDeA9J85lQ0NGIv1tiEPv0-_2fUJvqXZpTdYLE5Rnvx1F4XLhOcRbgduI1OaeoKYyumlRDy9ZKhNnMFLsic3v1UO4aH1yG-OZcnDtpAdXBmwVDO8eSpEafZ5X4oTav3TfX0VphVhYgEKxEZ8URfG7odvsOHT-YsjA0Fan1lz3UzPks6bs_AnAckKdEEGkecXxRp45QayJAa1nBOcN2uyp6rTNhUt5RgZS9AuM86maFL1eSQKslf6mjSZUxgCPp_yuWiHovlFsnRgIDNFehiRvhA0JFcZfTLnuI6_3OVm6U8zblxB5tNv3Utbrr5kjMxFySImeFt3POaZYnyl_OFWYoM2MVaUiLtDkPpuZ-1qWYH22P0iBVOIAqop5mlTQH3FQhxRFp9NH40VaQkvXbDeLt8P-hg1fymsIhkUrsSwNtZIKluqt5fsFGlyWOYW597HrbtO4mo0AWmpTfdJr4ws"
}Last updated