- For single-project purchases, POST /long_term/generation expects keyword to be the 24-character hex _id from GET /long_term/template/drop — do not pass project names like Gmail or PayPal.
- Write endpoints require an 8–128 character Idempotency-Key. If a request failed and you modify the payload, generate a new Idempotency-Key (reusing the old key with a different body returns 409).
Pick the target country id from the response (for example, US2).
curl -X GET 'https://www.sms9527api.com/openapi/v1/country/code/drop' \
-H 'Authorization: Bearer <API_KEY>'Filter by project name using keyword (such as Gmail), then copy _id from pagination.items.
curl -X GET 'https://www.sms9527api.com/openapi/v1/long_term/template/drop?country_id=US2&page=1&size=20&keyword=Gmail' \
-H 'Authorization: Bearer <API_KEY>'Pass the 24-char _id in keyword (or set is_all_project=true for all-project numbers) with a unique Idempotency-Key.
curl -X POST 'https://www.sms9527api.com/openapi/v1/long_term/generation' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Idempotency-Key: order-20261201-0001' \
-H 'Content-Type: application/json' \
--data '{"country_id":"US2","keyword":"65f1a2b3c4d5e6f7a8b9c0d1","days":7,"exp_num":1}'Use data.batch_number from the purchase response to list numbers, then poll /long_term/number/msg/list for SMS messages.
curl -X GET 'https://www.sms9527api.com/openapi/v1/long_term/number/list?batch_number=20261201090000abcdef123456&page=1&size=20' \
-H 'Authorization: Bearer <API_KEY>'