API ReferenceProjects
Delete and generate new API key for project
Generates a new API key for the specified project, invalidating any existing API keys for that project. This operation creates a fresh API key with a new random name and key value. All existing API keys for this project will be marked as deleted.
Authorization
OrgApiKeyAuth x-org-api-key<token>
Organization API key authentication
In: header
Path Parameters
nano_id*string
Unique identifier (Nano ID) of the project to regenerate API key for
Format
projectIdResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://backend.composio.dev/api/v3/org/owner/project/proj_abc123xyz456/regenerate_api_key"{
"api_key": {
"id": "01H4DKRF5SMP7NQCA3BWT0JYB6",
"name": "epic_avatar",
"key": "ak_a1b2c3d4e5f6g7h8i9j0",
"created_at": "2023-05-16T14:30:00.000Z"
},
"message": "API key regenerated successfully"
}{
"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"
]
}
}