Pi Durable Platformdocs
ReferenceService accounts

Delete a service account and revoke its keys (team owners and admins); its call records are kept

DELETE
/v1/teams/{team}/service-accounts/{serviceAccountId}

Path Parameters

team*string

Team slug or ID

serviceAccountId*string
Formatuuid

Response Body

Success

application/json
  1. response
data*
curl -X DELETE 'https://agents.example.com/v1/teams/string/service-accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08'
{  "data": {    "ok": true  }}