Firsty

Search...

Search...

Core concepts

Profiles

Your customers as Firsty knows them, and finding one from your own records.

A profile is your customer, as Firsty knows them. Every eSIM, package and usage record hangs off one, and the eSIM order creates it. Most other calls take its profileReference in the path.

Linking profiles to your customers

Send your own customer identifier as externalProfileId on the order. You can then find the profile from your own records without storing anything else:

GET /profiles
requests.get(
    "https://connect.test.firsty.app/api/v3/profiles",
    headers={
      "Authorization": "Bearer YOUR_ACCESS_TOKEN"
    },
    params={
      "externalProfileId": "my-customer-123"
    }
)

List profiles also finds a profile by what you hold from elsewhere:

FilterFinds the profile that
externalProfileIdYou created for one of your own customer records.
profileReferenceCarries that reference: confirms a reference you already hold.
iccid, esimReferenceCurrently owns that eSIM. An eSIM moved to another profile is found under its new owner only.
msisdnCurrently holds that phone number, digits only, without + or 00.
lifecycleStatusHas an eSIM in that lifecycle status.

Filters match exactly and combine with AND. A filter that matches nothing returns 200 with an empty data, never 404.

Reading and updating a profile

Get profile returns one profile with its esim. communicationLanguageCode is the language Firsty messages the customer in; update profile changes it, and null falls back to your account's default language.

PATCH /profiles/{profileReference}
requests.patch(
    "https://connect.test.firsty.app/api/v3/profiles/{profileReference}",
    headers={
      "Authorization": "Bearer YOUR_ACCESS_TOKEN",
      "Content-Type": "application/json"
    },
    json={
      "communicationLanguageCode": "nl"
    }
)

The profile's eSIMs

A profile usually has one eSIM, but keeps its earlier ones. List eSIMs returns them newest first, and get eSIM returns one in full: its status, its lifecycleStatus, and its number registration.