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

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

  1. Get a token.

    curl -s "$BASE/v1/oauth/token" \
      -d grant_type=client_credentials \
      -d client_id="$CLIENT_ID" \
      -d client_secret="$CLIENT_SECRET"
    
  2. Check the API answers.

    curl -s "$BASE/v1/health"
    
  3. List the products you can quote (coming with the quoting release).

    curl -s "$BASE/v1/products" -H "Authorization: Bearer $TOKEN"
    
  4. Fetch a product's question schema, build the risk object from it, and request a quote with POST /v1/quotes and an Idempotency-Key.

  5. 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.