ChangelogAcademyStatusContact salesContact supportSign up
DocumentationAPI ReferenceIntegrations
DocumentationAPI ReferenceIntegrations
  • Get Started
    • Introduction
    • Authentication
  • Resources
    • Custom Variables
    • Dynamic Prompt Injection
    • Timezones
    • API Changelog
  • Platform API
LogoLogo
ChangelogAcademyStatusContact salesContact supportSign up
Platform APISubaccounts

DELETE
https://api.synthflow.ai/v2/subaccounts/:subaccount_id
DELETE
/v2/subaccounts/:subaccount_id
1import requests
2
3url = "https://api.synthflow.ai/v2/subaccounts/subaccount_id"
4
5headers = {"Authorization": "Bearer <token>"}
6
7response = requests.delete(url, headers=headers)
8
9print(response.json())
Try it
200Deleted
1{
2 "status": "ok",
3 "response": {
4 "answer": "Subaccount deleted."
5 }
6}
Previous

Get a subaccount

Next
Built with
Deletes a subaccount by ID.
Delete a subaccount

Authentication

AuthorizationBearer
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Path Parameters

subaccount_idstringRequired
Subaccount ID.

Response

200
statusstring or null
Whether the request was successful.
responseobject or null

Errors

Bearer authentication of the form Bearer <token>, where token is your auth token.