Organization
List Integration Keys
Retrieve all integration keys for your organization
curl -X POST https://api.ugc.inc/org/integration-key \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
import { UGCClient } from 'ugcinc';
const client = new UGCClient({
apiKey: 'YOUR_API_KEY'
});
const response = await client.org.getIntegrationKeys();
if (response.ok) {
console.log('Integration Keys:', response.data);
response.data.forEach(key => {
console.log(`${key.provider}: ${key.maskedKey}`);
});
}
{
"ok": true,
"code": 200,
"message": "Success",
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"provider": "openrouter",
"maskedKey": "sk-o...8xYz",
"created_at": "2024-01-15T10:30:00.000Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"provider": "fal",
"maskedKey": "fal_...Ab12",
"created_at": "2024-02-20T14:45:00.000Z"
}
]
}
⌘I
curl -X POST https://api.ugc.inc/org/integration-key \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
import { UGCClient } from 'ugcinc';
const client = new UGCClient({
apiKey: 'YOUR_API_KEY'
});
const response = await client.org.getIntegrationKeys();
if (response.ok) {
console.log('Integration Keys:', response.data);
response.data.forEach(key => {
console.log(`${key.provider}: ${key.maskedKey}`);
});
}
{
"ok": true,
"code": 200,
"message": "Success",
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"provider": "openrouter",
"maskedKey": "sk-o...8xYz",
"created_at": "2024-01-15T10:30:00.000Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"provider": "fal",
"maskedKey": "fal_...Ab12",
"created_at": "2024-02-20T14:45:00.000Z"
}
]
}
