cURL
curl --request POST \ --url https://api.example.com/api/providers \ --header 'Content-Type: application/json' \ --cookie better-auth.session_token= \ --data ' { "name": "<string>", "slug": "<string>", "allowedIn": [ "<string>" ], "configurationSchema": {}, "description": "<string>", "organizationOnly": true } '
{ "id": "<string>", "name": "<string>", "slug": "<string>", "allowedIn": [ "<string>" ], "organizationOnly": true, "configurationSchema": {}, "createdBy": "<string>", "active": true, "createdAt": "<string>", "updatedAt": "<string>", "description": "<string>" }
Registers a new provider with a JSON configuration schema. Admin only.
1
^[a-z0-9-]+$
Show child attributes
Default Response
Was this page helpful?