Curacel Parent Child API

Create and manage children partners' specific operations

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

POST /v1/partners/child Create partner #
GET /v1/partners/child Fetch all child partners #
POST /v1/partners/child/request Create partner request #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/curacel:curacel-parent-child-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

curacel-parent-child-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Curacel Grow API Docs Parent Child API
  description: '# Introduction

    Curacel Grow is an embedded insurance that aims to drive insurance literacy and inclusion in Africa. This API allows developers, product owners, and business owners to tap into retail insurance by embedding insurance with their solutions, thereby offering customers tailored insurance to fit thier needs. This API gives you access to:


    - **Insurance**


    - **Custom**


    In this API reference, you''ll find all the information you need about each endpoint and resource. Tip: Make sure to also visit our Developer Portal for guides on Getting started with Grow, Setting up your environment, and Using our drop-in widget,


    ## Environment

    We currently offer two environments: sandbox and production. | Environment | Purpose | Access |

    |----------|-------|-------|

    | **Sandbox** | We''ve created a sandbox environment where you can test your API client code without incurring any costs. In this environment, you can create links without real credentials. No data is tampered with and you are able to thoroughly test API endpoints in test mode before going live. | Base URL (cURL): https://api.playbox.grow.curacel.co/api


    | **Production** | The Production environment is recommended for live applications that have direct connections to institutions. You will need real credentials to create links in this environment, and you will be pulling real data from the institutions.| Base URL (cURL): https://api.grow.curacel.co/api |


    Note

    You can''t create an application for live mode and sandbox using the same API key. We use the same endpoint structure, the only difference is the base URL. Therefore, for each environment, you''ll need to generate seperate API keys. ## HTTP Response status codes


    | Status Code | Description |

    | ----------- | ------- |

    | `1xx` | Informational. |

    | `2xx` | Successful - Everything worked as expected.|

    | `3xx` | Redirection messages. |

    | `4xx` | Client Error responses. |

    | `5xx` | Server error responses. |


    ## HTTP Response Status Codes Summary

    Curacel Grow uses the standard HTTP response codes to indicate if an API request was successful or not. | Status Code | Description |

    |-----------|-------|

    | `200` - **OK** | ✅ Everything worked perfectly.|

    | `201` - **Created** | ✅ As a result of the request''s success, a new resource was created. Most common use-case is in a POST request.|

    | `204` - **Success** | ✅ Although, the request was successful, no content to return by the server.|

    | `400` - **Bad Request** | ❌ The request was denied, usually because a required parameter was missing. |

    | `401` - **Unauthorized** | ❌ Unauthenticated because no valid API key was provided. |

    | `402` - **Request Failed**| ❌ The parameters were correct, however, the request did not succeed.|

    | `403` | ❌ The client does not have access rights to the content. |

    | `404` - **Not Found** | ❌ The server can not find the requested resource. The link may be correct, but the resource does not exist.|

    | `409` - **Conflict** | ❌ This response is sent when a request conflicts with the current state of the server.|

    | `422` - **Unprocessable Entity** | ❌ The request was well-formed, however, it couldn''t be carried out because of semantic flaws. |

    | `429` - **Too Many Requests** | ❌ The user has issued an excessive number of requests in a short period of time ("rate limiting"). |

    | `500`, `502`, `503`, `504` - **Server Errors** | ❌ Something went wrong on Curacels'' end. (These are rare.)


    Note that together with this response, a user-friendly page explaining the problem should be sent.|


    ## Error handling


    ### Error messages


    We don''t yet have any custom error codes, but errors would always contain one of the standard HTTP codes with a message in the payload. Curacel Grow API errors are returned in JSON format.'
  contact:
    name: Curacel Grow API Support
    email: grow@curacel.ai
    url: https://docs.curacel.co/
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://api.playbox.grow.curacel.co/api
  description: Sandbox
- url: https://api.grow.curacel.co/api
  description: Production
security:
- bearerAuth: []
tags:
- name: parent-child
  description: Create and manage children partners' specific operations
  x-displayName: Sub Accounts
paths:
  /v1/partners/child:
    post:
      operationId: createChildPartner
      tags:
      - parent-child
      summary: Create partner
      requestBody:
        description: Details of the partner
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateChildPartnerRequest'
      responses:
        201:
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChildPartnerCreatedResponse'
        403:
          description: Unauthorized
        422:
          description: Unprocessable Request
    get:
      tags:
      - parent-child
      summary: Fetch all child partners
      operationId: fetchChildPartners
      description: Get all child partners attached to your account
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/GetAllChildPartners'
        '401':
          description: Unauthenticated
        403:
          description: Unauthorized
  /v1/partners/child/request:
    post:
      operationId: createChildPartnerRequest
      tags:
      - parent-child
      summary: Create partner request
      description: If there is already existing partner you would like to be parent partner with. The partner will give you their key to make request to this endpoint. After approval, the partner will now be listed as your child partner.
      requestBody:
        description: Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                child_id:
                  type: string
                  format: string
                  description: Provide the key of the partner
      responses:
        201:
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerRequestResponse'
        403:
          description: Unauthorized
        422:
          description: Unprocessable Request
          content:
            application/json: {}
components:
  schemas:
    GetAllChildPartners:
      type: object
      properties:
        id:
          type: integer
          description: The partner's ID
        name:
          type: string
          description: The partner's name
        email:
          type: string
          format: email
          description: The partner's email address
        phone:
          type: string
          description: The partner's phone number
        logo:
          type:
          - string
          - 'null'
          description: The partner's logo (if available)
        key:
          type: string
          description: The partner's key
        sells_insurance_credits:
          type: boolean
          description: Indicates whether the partner sells insurance credits
        buys_insurance:
          type: boolean
          description: Indicates whether the partner buys insurance
        insurance_credits_markup_rate:
          type: number
          description: The markup rate for insurance credits
        insurance_credits_markup_cap:
          type: string
          description: The maximum markup cap for insurance credits
        currency:
          type: string
          description: The partner's currency
        accepted_toc:
          type: boolean
          description: Indicates whether the partner has accepted terms and conditions
        toc_date:
          type:
          - string
          - 'null'
          format: date-time
          description: The date when the partner accepted terms and conditions
        is_broker:
          type: boolean
          description: Indicates whether the partner is a broker
        created_at:
          type: string
          format: date-time
          description: The date and time when the partner was created
        updated_at:
          type: string
          format: date-time
          description: The date and time when the partner was last updated
        is_travel_agent:
          type: boolean
          description: Indicates whether the partner is a travel agent
        commission_share:
          type: number
          description: The commission share percentage
        payment_option:
          type: string
          description: The partner's preferred payment option
        can_go_live:
          type: boolean
          description: Indicates whether the partner can go live
    ChildPartnerCreatedResponse:
      type: object
      properties:
        id:
          type: number
        name:
          type: string
        email:
          type: string
        phone:
          type: string
        logo:
          type: string
          format: uri
        key:
          type: string
        sells_insurance_credits:
          type: boolean
        buys_insurance:
          type: boolean
        insurance_credits_markup_rate:
          type: number
        insurance_credits_markup_cap:
          type: number
        currency:
          type: string
        accepted_toc:
          type: string
        toc_date:
          type: string
          format: date-time
        is_broker:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        is_travel_agent:
          type: boolean
        commission_share:
          type: number
        payment_option:
          type: string
    CreateChildPartnerRequest:
      type: object
      properties:
        name:
          type: string
          maxLength: 200
          minLength: 4
          description: The name of the partner
        currency:
          type: string
          enum:
          - USD
          - EUR
          - GBP
          - NGN
          description: Fetch currency codes
        email:
          type: string
          format: email
          description: Unique email address of the partner
        phone:
          type: string
          minLength: 10
        logo_url:
          type: string
          format: binary
        commission_rate:
          type: number
          maximum: 5
          description: Commission of the partner
        payment_option:
          type: string
          enum:
          - card
          - web_link
          - wallet
        buys_insurance:
          type: boolean
        sells_insurance_credits:
          type: boolean
        password:
          type: string
          minLength: 8
          description: Login password of the partner
    PartnerRequestResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: number
            status:
              type: string
            child:
              type: object
              properties:
                id:
                  type: number
                status:
                  type: string
                name:
                  type: string
                email:
                  type: string
                phone:
                  type: string
                logo:
                  type: string
                  format: uri
                key:
                  type: string
                sells_insurance_credits:
                  type: boolean
                buys_insurance:
                  type: boolean
                insurance_credits_markup_rate:
                  type: number
                insurance_credits_markup_cap:
                  type: string
                currency:
                  type: string
                accepted_toc:
                  type: boolean
                toc_date:
                  type: string
                  format: date-time
                is_broker:
                  type: boolean
                created_at:
                  type: string
                  format: date-time
                updated_at:
                  type: string
                  format: date-time
                is_travel_agent:
                  type: boolean
                commission_share:
                  type: number
                payment_option:
                  type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API KEY from your account dashboard