Appearance
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.
| Environment | URL |
|---|---|
| Production | https://api-platform.flywire.com/agents/v2/ |
| Demo | https://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.
| Environment | URL |
|---|---|
| Production | https://api-platform.flywire.com/agents/v2/insurance-types |
| Demo | https://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.
| Environment | URL |
|---|---|
| Production | https://api-platform.flywire.com/agents/v2/intermediated-insurance-applications |
| Demo | https://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.
| Environment | URL |
|---|---|
| Production | https://api-platform.flywire.com/agents/v2/insurance-applications/{policy} |
| Demo | https://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
- Insurance Relations — formal definition of the entrypoint relations above
- Insurance Profiles — the response shapes you will encounter
- Insurance Schemas — the JSON Schemas of the response bodies