SamoChat API
Search…
Authentication
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 [email protected], 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
.NET library
Python library
1
curl --location --request POST 'https://samochat.eu.auth0.com/oauth/token' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"client_id": "{client_id}",
5
"client_secret": "{client_secret}",
6
"audience": "https://api.samochat.net",
7
"grant_type": "client_credentials"
8
}
Copied!
1
using SamoChatNet;
2
3
SamoChatConfig.ClientID = "ClientID";
4
SamoChatConfig.ClientSecret = "ClientSecret";
Copied!
1
import samochat
2
3
samochat.client_id = "client_id"
4
samochat.client_secret = "client_secret"
Copied!
Copy link