Skip to content

Delete Subscription

Open in ChatGPT Open in Claude
DELETE
/v1/subscription
curl --request DELETE \
--url https://api.foldspace.ai/v1/subscription \
--header 'Content-Type: application/json' \
--header 'X-FOLDSPACE-API-KEY: <X-FOLDSPACE-API-KEY>' \
--data '{ "identifyId": "subscription_1234" }'

Deleting a subscription by identifyId.

JSON body containing the subscription identifyId to be deleted

Media type application/json

DTO for deleting a subscription by identifyId

object
identifyId
required

The unique identify ID of the subscription to delete

string
0 <= 255 characters
Examples
Example Example Request

Example Request

{
"identifyId": "subscription_1234"
}

Subscription deleted successfully

Media type application/json
string
Example
{
"message": "Subscription deleted successfully"
}

Unauthorized

Media type application/json
string
Example
{
"error": "Unauthorized"
}

Subscription not found

Media type application/json
string
Example
{
"error": "Subscription not found"
}

Rate limit exceeded for subscription

Media type */*
string
Example
{
"error": "Rate limit exceeded for subscription"
}

Internal server error

Media type application/json
string
Example
{
"error": "Internal server error"
}