Register a new account
Registering a new account with email and password can provide you with a set of API credentials.
Register
POST https://api.photoncommerce.com/api/v4/register
Register using your email address and a password to receive a Client ID, Client Secret and an API Key
Headers
Name
Type
Description
Accept
string
Set to "application/json"
Content-Type
string
Set to "application/json"
Request Body
Name
Type
Description
password
string
Passwords must be atleast 10 characters long, must contain atleast 1 digit and 1 special character
string
your email address
{"client_id":"<your client ID>","api_key":"<your API Key>","secret_key":"<your client secret>","username":"<your email>","password":"<your password>"}{"registration":"failed","reason":"username already exists"}***Note: When the registration succeeds, you will receive an email containing a verification link. Click on it and you're good to go! Before verifying your email, you will not be able to use these credentials.
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"email": "<your-email>", "password": "<your-password>"}' "https://api.photoncommerce.com/api/v4/register" import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {
'email':'your-email-address',
'password':'must-be-secure-and-valid-1'
}
response = requests.post('https://api.photoncommerce.com/api/v4/register', headers=headers, json=payload)
r = response.json()
try:
for key in r:
print(f'{key}: {r[key]}')
except:
print(f'Registration failed, response from API: {r}')
Last updated
Was this helpful?