Get Subscription
const url = 'https://api.foldspace.ai/v1/subscription/example';const options = {method: 'GET', headers: {'X-FOLDSPACE-API-KEY': '<X-FOLDSPACE-API-KEY>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.foldspace.ai/v1/subscription/example \ --header 'X-FOLDSPACE-API-KEY: <X-FOLDSPACE-API-KEY>'Retrieves subscription by identifyId.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The unique identifier of the subscription
Responses
Section titled “ Responses ”Subscription retrieved successfully
Subscription Data Transfer Object
object
System-managed subscription ID (not updatable)
Unique identify ID for the subscription. Required during creation, not updatable.
Subscription name
Domain associated with this subscription
Plan ID or SKU
Last seen date (epoch ms). Must be a positive value.
Last modified date (system-managed)
Custom attributes as map of key-value pairs
object
Custom attributes as map of key-value pairs
object
Products associated with this subscription (1=prod, 2=stage, 3=test, 4=dev)
Details about product and environment association
object
Product code
Environment code (1=prod, 2=stage, 3=test, 4=dev)
Examples
Example Response
{ "id": "63f17f2c-e1ca-4e98-8391-500e7c84df19", "identifyId": "subscription_1234", "name": "Acme Org Subscription", "domain": "acme.org", "planId": "PLAN-123456", "lastSeenDate": 1734539909141, "lastModifiedDate": 1731863535216, "customAttributes": { "industry": "SaaS", "region": "US" }, "products": [ { "product": "X7B69NRTTBM7", "environment": 1 }, { "product": "Q2A36ZPLT6H1", "environment": 4 } ]}Unauthorized
Example
{ "error": "Unauthorized"}Subscription not found
Example
{ "error": "Subscription not found"}Rate Limit Exceeded
Example
{ "error": "Rate Limit Exceeded"}Rate limit exceeded for subscription
Example
{ "error": "Rate limit exceeded for subscription"}Internal server error
Example
{ "error": "Internal server error"}