Pont · Documentation
RéférenceAPI

Clés et agrégateurs

Coffre de clés chiffrées.

Lister les agrégateurs

GET
/admin/providers

Authorization

AdminToken
headerAuthorizationBearer <token>

PONT_ADMIN_TOKEN, pour les routes /admin.

Response Body

Agrégateurs.

application/json
  1. response
vault*boolean

Le coffre est actif (PONT_ENCRYPTION_KEY défini).

data*array<>
pluginErrors*array<>

Plugins qui n'ont pas pu être chargés.

curl -X GET 'http://localhost:8787/admin/providers'
{  "vault": true,  "data": [    {      "id": "fedapay",      "custom": true,      "label": "string",      "source": "vault",      "configured": true,      "webhookUrl": "http://example.com",      "fields": [        {          "name": "string",          "label": "string",          "secret": true,          "required": true,          "set": true,          "value": "string"        }      ]    }  ],  "pluginErrors": [    {      "dir": "string",      "message": "string"    }  ]}
DELETE
/admin/providers/{id}

Authorization

AdminToken
headerAuthorizationBearer <token>

PONT_ADMIN_TOKEN, pour les routes /admin.

Path Parameters

id*string

Identifiant de l'agrégateur.

Response Body

Clés supprimées.

application/json
  1. response
id*string
custom?boolean

true pour un agrégateur personnalisé chargé depuis PONT_PLUGINS_DIR.

label*string
source*string

vault : saisi dans le dashboard ; env : variables d'environnement ; none : non configuré.

Value in"vault""env""none"
configured*boolean
webhookUrl*string

URL à déclarer chez l'agrégateur.

Formaturi
fields*array<>
curl -X DELETE 'http://localhost:8787/admin/providers/string'
{  "id": "fedapay",  "custom": true,  "label": "string",  "source": "vault",  "configured": true,  "webhookUrl": "http://example.com",  "fields": [    {      "name": "string",      "label": "string",      "secret": true,      "required": true,      "set": true,      "value": "string"    }  ]}
PUT
/admin/providers/{id}

Authorization

AdminToken
headerAuthorizationBearer <token>

PONT_ADMIN_TOKEN, pour les routes /admin.

Path Parameters

id*string

Identifiant de l'agrégateur.

Request Body

Champs de l'agrégateur, voir fields dans GET /admin/providers.

application/json
  1. body
[key: string]?string

Response Body

Agrégateur mis à jour.

application/json
  1. response
id*string
custom?boolean

true pour un agrégateur personnalisé chargé depuis PONT_PLUGINS_DIR.

label*string
source*string

vault : saisi dans le dashboard ; env : variables d'environnement ; none : non configuré.

Value in"vault""env""none"
configured*boolean
webhookUrl*string

URL à déclarer chez l'agrégateur.

Formaturi
fields*array<>
curl -X PUT 'http://localhost:8787/admin/providers/string' \  -H 'Content-Type: application/json' \  -d '{  "secretKey": "sk_sandbox_…"}'
{  "id": "fedapay",  "custom": true,  "label": "string",  "source": "vault",  "configured": true,  "webhookUrl": "http://example.com",  "fields": [    {      "name": "string",      "label": "string",      "secret": true,      "required": true,      "set": true,      "value": "string"    }  ]}