42 lines
1.3 KiB
Markdown
42 lines
1.3 KiB
Markdown
# GrizzlySMS
|
|
|
|
## Auth
|
|
|
|
- Use `api_key` as a query parameter.
|
|
- The API is documented as compatible with the `sms-activate` style.
|
|
- Keep the activation API separate from the partner/supply protocol unless the user explicitly asks for partner integration.
|
|
|
|
## Core activation endpoint
|
|
|
|
- `GET /stubs/handler_api.php?action=getNumber&service=...&country=...&maxPrice=...&providerIds=...&exceptProviderIds=...`
|
|
- `GET /stubs/handler_api.php?action=getNumberV2&service=...&country=...&maxPrice=...&providerIds=...&exceptProviderIds=...`
|
|
- status-change and status-query actions follow the documented sms-activate-compatible activation API.
|
|
- balance and current-price actions are documented under the activation utility API.
|
|
|
|
## Number request variants
|
|
|
|
- `getNumber` returns `ACCESS_NUMBER:activationId:phoneNumber`.
|
|
- `getNumberV2` returns structured JSON fields.
|
|
|
|
## Key response fields
|
|
|
|
- `activationId`
|
|
- `phoneNumber`
|
|
- `activationCost`
|
|
- `currency`
|
|
- `countryCode`
|
|
- `canGetAnotherSms`
|
|
- `activationTime`
|
|
|
|
## Errors
|
|
|
|
- `BAD_KEY`
|
|
- `NO_NUMBERS`
|
|
- `SERVICE_UNAVAILABLE_REGION`
|
|
|
|
## Practical notes
|
|
|
|
- Use `maxPrice` when the user wants a ceiling.
|
|
- Use `providerIds` or `exceptProviderIds` only when the task needs provider filtering.
|
|
- Treat the activation flow as compatible with sms-activate style, but keep the exact endpoint and field names from GrizzlySMS.
|