CrossPromo Club API Docs
Enabling newsletter platforms to offer automated cross-promotion to their users.
To gain access, Contact us.
Enabling newsletter platforms to offer automated cross-promotion to their users.
To gain access, Contact us.
At present, our API is used to facilitate SSO from within your platform to ours. You are the identity provider for your users, and we create accounts from them to use on our platform. Your users are tagged as belonging to you.
Authentication requires only your API-Key:
curl -X GET https://crosspromo.club/api/new-user/ \
-H "API-Key: UR70776441awe50me"
Your users are yours, but we need to create accounts for them on our platform so that we can properly monitor sessions and credit their activity to them. Accounts can technically be created with no information, but the following is strongly advised:
Newsletters must include a title, tagline, url and logo. The remaining fields are optional:
To create a new user:
curl -X POST https://crosspromo.club/api/new-user/
-H "Content-Type: application/json" \
-H "API-Key: UR70776441awe50me" \
-d '{
"email": "name@somedomain.com",
"newsletters": [
{
"title": "A brand new newsletter",
"tagline": "All about being a brand new newsletter",
"url": "https://newnewsletter.com",
"logo": "URL to an image resource",
"topic_list": "tech, ai",
"language_list": "English"
},
{
"title": "Another fantastic newsletter",
"tagline": "I just love newsletter so much",
"url": "https://anothernewsletter.com",
"logo": "URL to an image resource",
"topic_list": "society, ai",
"language_list": "English, Spanish"
}
]
}'
If the user is successfully created, then the following response will be given:
{
"message":"user created",
"api_id":"5effc684-4883-4054-a100-d38c920a6ccc",
"login_url":"https://crosspromo.club/sso-login/27394eee-927a-48c6-86c8-67ef6a57033f/",
"newsletters":[
{
"title": "A brand new newsletter",
"url": "https://newnewsletter.com"
},
{
"title": "Another fantastic newsletter",
"url": "https://anothernewsletter.com"
}
]
}
Two of these return values are important:
Once users are created, logging them in via SSO is an almost identical process to creating them. This is the required POST request:
curl -X POST https://crosspromo.club/api/sso-session-create/ \
-H "Content-Type: application/json" \
-H "API-Key: UR70776441awe50me" \
-d '{
"api_id": "5effc684-4883-4054-a100-d38c920a6ccc"
}'
The following response will be given with a login_url
{
"message":"login session created",
"login_url":"https://crosspromo.club/sso-login/86e93baf-c95c-4e47-bc66-9b0d0be96615/"
}
Redirect the user to the login_url, and they'll be logged into our platform.