Skip to content

Insurance Entrypoints ​

The Insurance API is accessed through the Agents API root. These are the link relations relevant to insurance that appear in the root response.

Root ​

The API root is the only URL you need to hardcode. All other URLs are discovered by following links.

EnvironmentURL
Productionhttps://api-platform.flywire.com/agents/v2/
Demohttps://api-platform.demo.flywire.com/agents/v2/

Available Entrypoints ​

When you GET the root, the response contains links for every available action. These are the insurance-specific relations:

insurance-types ​

Lists the available insurance types (OSHC, OVHC, NZ). This is the starting point for requesting quotes and purchasing insurance.

EnvironmentURL
Productionhttps://api-platform.flywire.com/agents/v2/insurance-types
Demohttps://api-platform.demo.flywire.com/agents/v2/insurance-types

Full relation: tag:flywire.com,2016:agents:api:relation:insurance-types

intermediated-insurance-applications ​

Lists all insurance applications intermediated by your agency. Use this to browse policies, check statuses, and manage existing applications.

EnvironmentURL
Productionhttps://api-platform.flywire.com/agents/v2/intermediated-insurance-applications
Demohttps://api-platform.demo.flywire.com/agents/v2/intermediated-insurance-applications

Full relation: tag:flywire.com,2016:agents:api:relation:intermediated-insurance-applications

intermediated-insurance-application ​

Get back an insurance application your agency intermediated, by its policy reference. This is a templated link: expand it with an input matching its insurance-application-retrieval-href schema, whose policy is the application's policy.reference (as listed in intermediated-insurance-applications), and GET the result.

EnvironmentURL
Productionhttps://api-platform.flywire.com/agents/v2/insurance-applications/{policy}
Demohttps://api-platform.demo.flywire.com/agents/v2/insurance-applications/{policy}

The response is the application itself, which advertises the intermediated-insurance-application profile. If your agency has no application with that reference, the response is 404 Not Found.

Full relation: tag:flywire.com,2016:agents:api:relation:intermediated-insurance-application

Discovering Entrypoints ​

TIP

You should never hardcode these entrypoint URLs (except the root). Always discover them from the root response's links array by matching the rel suffix.

json
{
  "links": [
    {
      "rel": "tag:flywire.com,2016:agents:api:relation:insurance-types",
      "href": "https://api-platform.demo.flywire.com/agents/v2/insurance-types"
    },
    {
      "rel": "tag:flywire.com,2016:agents:api:relation:intermediated-insurance-applications",
      "href": "https://api-platform.demo.flywire.com/agents/v2/intermediated-insurance-applications"
    },
    {
      "rel": "tag:flywire.com,2016:agents:api:relation:intermediated-insurance-application",
      "href": "https://api-platform.demo.flywire.com/agents/v2/insurance-applications/{policy}",
      "schemas": {
        "href": "tag:flywire.com,2016:agents:api:schema:insurance-application-retrieval-href"
      }
    }
  ]
}

Reference ​

Flywire Agents API Documentation