Validate Stripe Credentials
Stripe Configuration
Validate Stripe Credentials
Validate Stripe API credentials by making a test API call
POST
Validate Stripe Credentials
Validate Stripe API credentials before saving them to your configuration. This endpoint makes a test API call to Stripe to verify the credentials are valid and have the necessary permissions.Documentation Index
Fetch the complete documentation index at: https://devkit4ai.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
This endpoint requires developer authentication via OAuth2 Bearer Token. You must own the project.
Path Parameters
The unique identifier of the project
Request Body
The Stripe secret key to validate (starts with
sk_test_ or sk_live_)Whether this is a test mode key. Set to
false for live keys.Response
Whether the credentials are valid
Validation result message
Example Request
Validate a test mode secret key:Successful Validation
Failed Validation
Validation Flow
Common Validation Errors
| Error | Cause | Solution |
|---|---|---|
| Invalid API key | Key doesn’t exist or is malformed | Double-check the key from Stripe Dashboard |
| API key is restricted | Key has limited permissions | Use an unrestricted key or add required permissions |
| Test key for live mode | Provided test key with is_test_mode: false | Use matching key type for the mode |
| Account not verified | Stripe account requires verification | Complete verification in Stripe Dashboard |
Best Practices
Validate Before Saving
Always validate credentials before calling Update Stripe Config.
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized - Invalid or missing authentication |
403 | Forbidden - You don’t own this project |
404 | Project not found |
422 | Validation error - Missing or invalid request body |
Related Pages
Update Stripe Config
Save validated credentials
Get Stripe Config
View current configuration
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Body
application/json

