Get User Subscription
curl --request GET \
--url https://api.cycls.ai/v1/user/subscription \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.cycls.ai/v1/user/subscription"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.cycls.ai/v1/user/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Billing
Get User Subscription
Fetches the billing subscription details for the authenticated user from Clerk.
GET
https://api.cycls.ai
/
v1
/
user
/
subscription
Get User Subscription
curl --request GET \
--url https://api.cycls.ai/v1/user/subscription \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.cycls.ai/v1/user/subscription"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.cycls.ai/v1/user/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
APIKeyHeaderHTTPBearer
Your Cycls API key, from https://cloud.cycls.com. Sent as the X-API-Key header. This is the CYCLS_API_KEY the CLI uses.
Response
Successful Response