Getting started
The Partner API lets a marketplace quote, bind and service carrier products on SecondSight's SHAPE platform, and run company enrichment, through one API.
How access works
- Your credentials belong to your marketplace. SecondSight issues a
client_idandclient_secret. The secret is shown once; store it like a password. - A connection decides which carrier you can reach. Each carrier holds its own agreement with you. When a carrier switches you on, SecondSight creates a connection between your marketplace and that carrier, and the carrier picks which of its products you may quote.
- Playground and production are separate. Playground credentials (
ss_cli_test_...) work only in the playground, production credentials (ss_cli_live_...) only in production.
Base URLs
| Environment | Base URL |
|---|---|
| Production | https://api.secondsight.ai/functions/v1/partner-api |
| Playground | Issued with your playground credentials. |
The reference also lists SecondSight's own UAT and development hosts. They are for SecondSight testing, not for partner traffic.
Every path in this reference is relative to the base URL. For example the token endpoint in
production is https://api.secondsight.ai/functions/v1/partner-api/v1/oauth/token. The first
v1 belongs to the hosting platform; the second is the API's major version.
Your first calls
Get a token.
curl -s "$BASE/v1/oauth/token" \ -d grant_type=client_credentials \ -d client_id="$CLIENT_ID" \ -d client_secret="$CLIENT_SECRET"Check the API answers.
curl -s "$BASE/v1/health"List the products you can quote (coming with the quoting release).
curl -s "$BASE/v1/products" -H "Authorization: Bearer $TOKEN"Fetch a product's question schema, build the
riskobject from it, and request a quote withPOST /v1/quotesand anIdempotency-Key.Set up your webhook receiver and verify signatures before you rely on events. See Webhooks.
Going live
Build against the playground first, then pass the certification scenarios (see Certification). SecondSight then issues production credentials for each carrier that has switched you on.
Coming operations
Operations marked Coming are part of the v1 contract but not served yet. They are published so you can design for them. Their shapes can still change before they go live, and every change is listed in the changelog.