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_2cHSSn33KR1aCJhLMzgQrLK1FJaVgGNp7Waa9ZqF6pNFbKPwfhY2Z5gpesLic6Z5WnPp5YpZges7T6bSeKmQCcKYREH4BVrr9xwxMrttEvR7JWzqxu6EA8wd5fU6xCqGMfqG7cbKLkPxMJkf5dgWgJu3RHnmaUc3jKnqebZVAVs8T2LQvMQk2A9Jd' \
--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