SamoChat API
  • Introduction
  • Authentication
  • Endpoints
Powered by GitBook
On this page

Was this helpful?

Authentication

PreviousIntroductionNextEndpoints

Last updated 3 years ago

Was this helpful?

The SamoChat API uses a bearer token to authenticate requests but first, you have to get it by using your client_id and client_secret. In order to get them you'll need to contact us at , and write the following:

  • Why you need access to the API?

  • The link to your SamoChat profile

You'll only get access if you're already a SamoChat user.

The access token will expire after 24 hours

curl --location --request POST 'https://samochat.eu.auth0.com/oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "client_id": "{client_id}",
    "client_secret": "{client_secret}",
    "audience": "https://api.samochat.net",
    "grant_type": "client_credentials"
}
using SamoChatNet;
 
 SamoChatConfig.ClientID = "ClientID";
 SamoChatConfig.ClientSecret = "ClientSecret";
import samochat

samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
info@samochat.net