Request resources through API
Request resources programmatically using the Resource Request API for automation and scale. Retrieve requirements, upload documents, submit requests, receive status updates, and manage the full lifecycle through the API.
Prerequisites
You need:
- Active Infobip account
- Completion of Resources and Numbers overview
- Understanding of Resource request procedure
- Familiarity with HTTP requests and JSON
API overview
The Resource Request API supports programmatic requests for alphanumeric senders and phone numbers. It provides a structured workflow: retrieve requirements, upload documents, submit requests, receive updates, and manage request status throughout the lifecycle.
The API enables automation at scale. Integrate resource requests directly into your platform workflows, track status through webhooks, and respond to validation feedback programmatically.
The Numbers API is also available for number purchase workflows where you need to browse or select specific numbers before purchase. Use the Resource Request API when you want a structured request flow with requirements, document upload, status updates, and lifecycle management.
Supported request types [#supported-request-types-api-overview]
The Resource Request API supports three types of requests, each with different parameter requirements:
Alphanumeric sender registration
ALPHANUMERIC_REGISTRATION
Custom sender names for SMS. Requires country code.
Number purchase
NUMBER_PURCHASE
Phone numbers for SMS, Voice, and MMS. Requires country code, number type, and capabilities.
RCS sender launch
RCS_SENDER_LAUNCH
Activate RCS senders. Requires sender name, country code, traffic origin, and contact emails.
WhatsApp numbers are not purchased directly through the Resource Request API. Instead, purchase a standard virtual long number through this API, then follow the WhatsApp multi-step workflow to register and verify it for WhatsApp use.
Requesting a USA number (10DLC or Toll-Free) through this API is only the first step. After your number purchase is approved, complete brand registration and campaign registration through USA Sender Registration. Complete registration before sending traffic. Short codes must be purchased through the web interface, not the API.
API workflow
The process of requesting resources through the API follows a structured sequence of endpoints.
Get requirements
Retrieve all data and documentation requirements for your resource type.
Upload documents
Submit any required documents (if applicable).
Submit request
Submit your resource request with all required data.
Receive updates
Get notified of status changes through webhook.
Update or cancel
Respond to validation feedback or cancel if needed.
Request statuses [#request-statuses-api-workflow]
When you submit a resource request through the API, it progresses through multiple statuses during validation and processing.
| Status | Description |
|---|---|
PENDING | Request is being processed by Infobip. Team may reach out by email for additional data or updates. |
PENDING_REVIEW | Request is awaiting review by Infobip after submission. Precedes automatic validation or manual assessment. |
AUTOMATIC_VALIDATION | Request is undergoing automatic validation (data format, field requirements, value limits, and regex compliance). |
IN_REVIEW | Request is actively being reviewed by an Infobip team member to verify details, compliance, and completeness. |
IN_PROGRESS | Request has passed initial validation and is being processed internally. Approval, allocation, or provisioning is underway. |
UPDATE_REQUESTED | Automatic validation detected issues in submitted data. Requester must update the information. Feedback is provided through the requirementsFeedback array. If you opted in to structured feedback, it is provided through the feedback array instead. With document prefilling, this status also means that a prefilled document needs your signature, stamp, or letterhead. |
UPDATE_REQUESTED_BY_INTERNAL_REVIEWER | Infobip reviewer has requested additional information or corrections. Request cannot proceed until updates are submitted. Feedback is provided through the requirementsFeedback array. If you opted in to structured feedback, it is provided through the feedback array instead. |
COMPLETED | Request has been successfully processed and finalized. Resource is ready to use. |
REJECTED | Infobip has rejected the request. Cannot be updated; you must submit a new request. |
EXPIRED | Infobip closed the request because it was inactive. Applies only if you opted in to structured feedback. Without the opt-in, these requests get the REJECTED status. Submit a new request. |
CANCELED | Request has been canceled by requester or system. |
For UPDATE_REQUESTED or UPDATE_REQUESTED_BY_INTERNAL_REVIEWER statuses, use the Update resource request endpoint to submit corrections.
Get requirements endpoint
Retrieve all required data and documentation fields for your specific resource type and country before submitting. This prevents validation failures by ensuring you gather all needed information upfront.
- Specify the request type (
ALPHANUMERIC_REGISTRATION,NUMBER_PURCHASE, orRCS_SENDER_LAUNCH). - Provide required parameters for your resource type.
- The API returns a list of required fields with their data types and validation rules.
For alphanumeric senders, set featureOptIns.documentPrefill to true to also get the requirements that Infobip needs to prefill registration documents. See Opt in to prefilling.
Possible responses:
- No requirements needed (Numbers): Empty object returned. The number requires no additional documentation or data.
- No offer (Numbers): No appropriate offers available for the specified parameters (Error:
RES-NUM-LOOKUP404). - No registration (Alphanumeric senders): Alphanumeric registration not available for this country (unsupported or country allows any sender).
All requests are validated for syntax correctness, authorization and permissions, required field presence, field-specific rules (length, format, and pattern), and compliance requirements.
Upload documents endpoint
Submit required documentation files that will be attached to your resource request. Use this endpoint only if your Get requirements response includes fields of type DOCUMENT.
- For each required document field identified in requirements, prepare your document file.
- Call the Upload document endpoint with your file.
- The API returns a document ID.
- Use this document ID when submitting your resource request.
This two-step process (upload first, then reference in request) ensures documents are properly stored and linked to your request.
You also use this endpoint to upload a prefilled document after you sign or stamp it. See Sign and upload a prefilled document.
Document prefilling
For alphanumeric sender registration, Infobip can fill in country-specific registration documents for you. You provide the requested information once as request requirements, and Infobip transfers it into the required documents and formats. In most cases, the only manual work left is to sign a prefilled document.
For an overview and the list of supported countries, see Automated document prefilling.
Opt in to prefilling [#opt-in-to-prefilling-document-prefilling]
Prefilling is off by default in the API. To opt in, set featureOptIns.documentPrefill to true in two calls:
- Get the requirements: Call Get resource requirements with the opt-in. This endpoint looks up requirements before you submit a request. The response also includes the requirements that Infobip needs to prefill the documents, so you see the full list before you submit.
- Submit the request: Call Submit resource request with the same opt-in and provide all the requirements from step 1.
Example: get the requirements with prefilling
Example: submit the request with prefilling
- Structured feedback: Prefilling requires structured feedback. When you set
featureOptIns.documentPrefilltotrue,featureOptIns.structuredFeedbackis enabled automatically. A request withdocumentPrefillset totrueandstructuredFeedbackset tofalseis rejected. - More requirements: With the opt-in, Get resource requirements can return more requirements than without prefilling. These requirements replace the documents you would otherwise fill in yourself.
What happens after you submit [#what-happens-after-you-submit-document-prefilling]
- No action needed: Infobip handles the documents and does not return them to you. The registration continues without an update request.
- Action needed: If a prefilled document needs your signature, company stamp, or printing on your company letterhead, the request moves to the
UPDATE_REQUESTEDstatus shortly after you submit it. If you subscribed to the status update webhook, you receive the same details in the webhook payload.
When action is needed, the Get resource request response and the webhook payload contain two arrays:
feedback: Describes the action needed for each document. TherequirementKeyidentifies the document.additionalRequirements: Contains the prefilled documents. For each prefilled document,attachment.documentTypeisPREFILLED_DOCUMENTandattachment.documentIdis the ID you use to download it.
The feedback array uses these keys for prefilled documents:
PREFILLED_DOC_SIGNATURE_REQUIRED: Sign the document.PREFILLED_DOC_STAMP_REQUIRED: Add your company stamp.PREFILLED_DOC_LETTERHEAD_REQUIRED: Print the document on your company letterhead.
Example: request that needs a signature on a prefilled document
Sign and upload a prefilled document [#sign-and-upload-a-prefilled-document-document-prefilling]
When your request is in the UPDATE_REQUESTED status because of a prefilled document:
- Get all requirements of the request, including the prefilled documents, with Get resource request requirements. Unlike Get resource requirements, this endpoint returns the requirements of an existing request. The response combines the original requirements and
additionalRequirementsin one list, so you do not need to merge them yourself. To see which action each document needs, check thefeedbackarray in Get resource request or in the status update webhook payload. - For each requirement where
attachment.documentTypeisPREFILLED_DOCUMENT, download the prefilled file with Download document, usingattachment.documentId. - Complete the action described in
feedback: sign the document, add your company stamp, or print it on your company letterhead. - Upload the completed document with Upload document. The API returns a new document ID.
- Update the request with Update resource request. Include all requirements from step 1, not only the changed ones, and use the new document IDs for the document requirements.
Submit resource request endpoint
Submit your resource request with all required data and documents after gathering requirements and uploading any files.
Before submitting:
- Submit only after you have gathered all requirements and uploaded any required documents.
- Some numbers do not require additional data. Always call Get requirements first.
- Submission may incur charges depending on the resource type.
Receive updates webhook
Subscribe to status update webhooks to be notified when your request status changes, instead of polling the API. When your request status changes, the webhook delivers an event specifying the new status (COMPLETED, REJECTED, UPDATE_REQUESTED, and more).
This allows you to:
- Monitor request progress in real-time
- Automatically trigger actions when status changes
- Reduce polling overhead by receiving push notifications
Update resource request endpoint
Submit corrections or additional information when validation fails or Infobip requests clarification. Use this endpoint when automatic validation detected issues in your submitted data or a prefilled document needs your signature, stamp, or letterhead (UPDATE_REQUESTED status) or when an Infobip reviewer requested additional information (UPDATE_REQUESTED_BY_INTERNAL_REVIEWER status).
- Call Get resource request to retrieve validation feedback in the
requirementsFeedbackarray, or in thefeedbackarray if you opted in to structured feedback. CheckadditionalRequirementsfor requirements added after submission, such as prefilled documents. To get all requirements in one list, use Get resource request requirements. - Update the problematic fields based on feedback.
- Call Update resource request with the request identifier and corrected data.
- The request re-enters the validation and review process.
Alternative: For alphanumeric sender requests only, you can also edit directly from the My requests page in the web interface.
Cancel resource request endpoint
Cancel a resource request at any time before completion.
- Call Cancel resource request with the request identifier.
- Request status changes to
CANCELED. - The request is removed from the processing queue.
Alternative: You can also cancel through the web interface for both alphanumeric senders and number purchases.
Track your requests
Monitor status and respond to feedback after submission.
Manage resources
Configure, manage, and route inbound messages after approval.
Numbers
Number types, ownership models, and coverage.
Was this page helpful?