Base URL

 https://www.sumtyme.com/shared

Request Endpoint

POST /auth/generate-api-key

Request Headers

Content-Type
string
required

Must be set to application/json

Request Body

email
string
required

The email address associated with your account

password
string
required

The current password associated with your account

Response Fields

api_key
string

The API key used to authenticate requests to the API. Valid for 24 hours.

API keys expire 24 hours after creation and will need to be regenerated.

Example - API Key Request

# Import necessary libraries
import requests
import json

# Specify Base URL
BASE_URL = "https://www.sumtyme.com/shared"

# Create JSON payload for API request
refresh_request_data = {
    "email": "name@example.com",
    "password": "SecurePassword2025!"

}

# Set header for API request
headers = {
    "Content-Type": "application/json"
}

# Set header for API request
response = requests.post(f"{BASE_URL}/auth/generate-api-key",
            headers=headers, 
            data=json.dumps(refresh_request_data)).json()

Example - Response


{
    "api_key": "stai-abcdefghijklmnopqrstuvwxyz9999456789"
}