API ReferenceAuth Configs
Create new authentication configuration
Creates a new auth config for a toolkit, allowing you to use your own OAuth credentials or API keys instead of Composio-managed authentication. This is required when you want to use custom OAuth apps (bring your own client ID/secret) or configure specific authentication parameters for a toolkit.
Authorization
ApiKeyAuth x-api-key<token>
API key authentication
In: header
Request Body
application/json
toolkit*
auth_config?|
Default
{"type":"use_composio_managed_auth","credentials":{},"restrict_to_following_tools":[]}Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://backend.composio.dev/api/v3/auth_configs" \ -H "Content-Type: application/json" \ -d '{ "toolkit": { "slug": "string" } }'{
"toolkit": {
"slug": "string"
},
"auth_config": {
"id": "string",
"auth_scheme": "string",
"is_composio_managed": true,
"restrict_to_following_tools": []
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}