DevelopersAPIReferenceai_consents
List ai consents
List every AI provider SaaSFlow can send company data to, with the current disclosure for each (which agents use it, which models, what data leaves the…
Authentication
Checking whether you're signed in…
Authorization<token>
A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.
In: header
Path Parameters
companyId*string
Length
1 <= lengthResponse Body
application/json
curl -X GET "https://example.com/companies/string/ai_consents"[ { "providerKey": "anthropic", "providerName": "string", "processingLocation": "string", "disclosureVersion": 0, "agents": [ { "definitionId": "string", "title": "string", "description": "string", "modelName": "string", "permissions": [ "subscriptions:read" ] } ], "consent": { "grantedAt": "string", "grantedByUserId": "string", "grantedByUserEmail": "string", "disclosureVersion": 0 }, "consented": true, "canApprove": true }]Transcript
Download the full session transcript as JSON Lines: every message and every tool call the agent made, which is the record to read when debugging what an…
Create ai consent
Grant this company consent to share data with one AI provider. Only a company owner can do this. Send the disclosureVersion that was actually shown to the…