Your store's APIApps referenceReseller connections
Create Connection
POST
/admin/connectionsSaves the connection and asks the provider for its manifest. A connection whose provider does not answer is saved as failing, so the seller can fix the credentials and check again.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
kind*
name*string
baseUrl*string
Length
length <= 2048token*string
Length
4 <= length <= 512signingSecret*string
Length
4 <= length <= 512eventsSecret*|null
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/admin/connections" \ -H "Content-Type: application/json" \ -d '{ "kind": "hamilton", "name": "string", "baseUrl": "string", "token": "string", "signingSecret": "string", "eventsSecret": "string" }'{ "connection": { "id": "string", "kind": "hamilton", "name": "string", "baseUrl": "string", "status": "active", "manifest": { "protocolVersion": 1, "capabilities": [ "catalog.read" ], "constraints": { "maxBatch": 1, "hwidResetMinIntervalMinutes": 1, "trialMaxMinutes": 1, "rateLimitPerMinute": 1 } }, "products": [ { "id": "string", "name": "string", "durations": { "_tag": "Fixed", "minutes": [ 1 ] }, "trialMaxMinutes": 1, "status": { "key": "string", "label": "string", "tone": "success", "message": "string" } } ], "manifestFetchedAt": "string", "lastError": "string", "acceptsEvents": true, "eventsPath": "string", "createdAt": "string", "updatedAt": "string" }, "ok": true, "error": "string"}