Timeout: Set your request timeout to at least 60 seconds. Profile generation time may vary depending on the package.
Start Date: A small subset of packages (~30 out of 28,000+) require a startDatewhen generating a profile. These packages haverequirements.travelDateset totrue. If required and not provided, the request will fail.
| Name | Type | Required | Description |
|---|---|---|---|
esimId | string | required | The eSIM ID to generate a profile for. |
referenceId | string | optional | The reference ID from the original order. If omitted, a single eSIM profile will be generated for the provided esimId. |
startDate | string | conditional | The travel start date in ISO 8601 format. Required only if the package has requirements.travelDate set to true. |
curl --location 'https://api-dev.getroamify.com/api/esim/apply' \
--header 'Authorization: Bearer roamify_4ECge13m8ZqFvGshLVLfdnFzi5hGuXkCBg2keWxVVKi7b2BGWmoXiv7bgVtNxY5Ruif7QKEthrLNrEkvnBV3Z7D3Fyj547NbnDnsDU7HgkRX8ggKD285dkXZHdNFM8npxoyr12nSzfpzqRuLvJj2d9eXgucEQmD9Gg4aKnUWvNaRbz1mKv7fAwdJe' \
--header 'Content-Type: application/json' \
--data '{
"esimId": "c1ff9fa7-9373-49be-bceb-41c298779709",
// "startDate": "only for selected eSIM, look for requirements.travelDate = true"
}'application/json; charset=utf-8 content type is not supported in the response body