Get Stripe Configuration
curl --request GET \
--url https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"has_test_credentials": true,
"has_live_credentials": true,
"created_at": "2023-11-07T05:31:56Z",
"test_secret_key_masked": "<string>",
"test_publishable_key_masked": "<string>",
"test_webhook_secret_masked": "<string>",
"live_secret_key_masked": "<string>",
"live_publishable_key_masked": "<string>",
"live_webhook_secret_masked": "<string>",
"test_configured_at": "2023-11-07T05:31:56Z",
"live_configured_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Stripe Configuration
Get Stripe Configuration
Retrieve the Stripe payment configuration for a project
GET
/
api
/
v1
/
payments
/
stripe
/
projects
/
{project_id}
/
config
Get Stripe Configuration
curl --request GET \
--url https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"has_test_credentials": true,
"has_live_credentials": true,
"created_at": "2023-11-07T05:31:56Z",
"test_secret_key_masked": "<string>",
"test_publishable_key_masked": "<string>",
"test_webhook_secret_masked": "<string>",
"live_secret_key_masked": "<string>",
"live_publishable_key_masked": "<string>",
"live_webhook_secret_masked": "<string>",
"test_configured_at": "2023-11-07T05:31:56Z",
"live_configured_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Retrieve the current Stripe payment configuration for a specific project. Returns masked credential information for security - full credentials are never exposed through the API.
Authentication
This endpoint requires developer authentication via OAuth2 Bearer Token. You must own the project.
Path Parameters
string (UUID)
required
The unique identifier of the project
Response
Returns the Stripe configuration with masked credentials, ornull if no configuration exists.
string (UUID)
Configuration ID
string (UUID)
Project ID
boolean
Whether the configuration is active
boolean
Whether test mode credentials are configured
boolean
Whether live mode credentials are configured
string
Masked test secret key (e.g.,
sk_test_...xxxx)string
Masked test publishable key
string
Masked test webhook secret
string
Masked live secret key
string
Masked live publishable key
string
Masked live webhook secret
string (datetime)
When test credentials were configured
string (datetime)
When live credentials were configured
string (datetime)
When the configuration was created
string (datetime)
When the configuration was last updated
Example Request
curl "https://api.devkit4ai.com/api/v1/payments/stripe/projects/550e8400-e29b-41d4-a716-446655440000/config" \
-H "Authorization: Bearer {developer_jwt}"
Example Response
{
"id": "770e8400-e29b-41d4-a716-446655440000",
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"is_active": true,
"has_test_credentials": true,
"has_live_credentials": false,
"test_secret_key_masked": "sk_test_...aBcD",
"test_publishable_key_masked": "pk_test_...eFgH",
"test_webhook_secret_masked": "whsec_...iJkL",
"live_secret_key_masked": null,
"live_publishable_key_masked": null,
"live_webhook_secret_masked": null,
"test_configured_at": "2026-01-10T14:30:00Z",
"live_configured_at": null,
"created_at": "2026-01-10T14:30:00Z",
"updated_at": "2026-01-10T14:30:00Z"
}
No Configuration Response
If no Stripe configuration exists for the project, the response isnull:
null
Credential Masking
Credentials are masked for security. Only the last 4 characters are visible:| Key Type | Format |
|---|---|
| Secret Key | sk_test_...xxxx or sk_live_...xxxx |
| Publishable Key | pk_test_...xxxx or pk_live_...xxxx |
| Webhook Secret | whsec_...xxxx |
Full credentials are never returned by the API. If you need to update credentials, use the Update Stripe Config endpoint.
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized - Invalid or missing authentication |
403 | Forbidden - You don’t own this project |
404 | Project not found |
Related Pages
Update Stripe Config
Configure Stripe credentials
Delete Stripe Config
Remove Stripe configuration
Get Webhook URLs
Get webhook endpoint URLs
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Response
StripeConfigResponse · object | null
Successful Response
Stripe configuration response with masked credentials.

