# Title ## Docs - [Overview](https://base93-apis.apidog.io/overview-1677960m0.md): ## API Docs - Endpoints > Companies [All companies](https://base93-apis.apidog.io/all-companies-21837260e0.md): - Endpoints > Companies [Get a company](https://base93-apis.apidog.io/get-a-company-22799298e0.md): - Endpoints > Companies [Create company](https://base93-apis.apidog.io/create-company-32425594e0.md): Creates a draft/saved company application with dynamic form pages and selected quote configuration. quote_config is validated both structurally and against selected pricing. - Endpoints > Companies [Create payment](https://base93-apis.apidog.io/create-payment-32426260e0.md): Debits the external agent wallet and marks the company application as paid. No request body is required. - Endpoints > Pricing [Get pricing packages](https://base93-apis.apidog.io/get-pricing-packages-32422312e0.md): Returns active pricing entries filtered by optional country, company type, and freezone. This route is protected by JWT auth and role/access checks. - Endpoints > Countries [All countries](https://base93-apis.apidog.io/all-countries-22816883e0.md): - Endpoints > Countries [Get a country](https://base93-apis.apidog.io/get-a-country-22816884e0.md): - Endpoints > Forms [Get a form](https://base93-apis.apidog.io/get-a-form-22817041e0.md): - Endpoints > Leads [All leads](https://base93-apis.apidog.io/all-leads-21837256e0.md): - Endpoints > Leads [Get a lead](https://base93-apis.apidog.io/get-a-lead-21837257e0.md): - Endpoints > Leads [Update status](https://base93-apis.apidog.io/update-status-21837258e0.md): - Endpoints > Profile [Get profile](https://base93-apis.apidog.io/get-profile-21837263e0.md): - Endpoints > Profile [Update profile](https://base93-apis.apidog.io/update-profile-21837264e0.md): - Endpoints > Wallet [Get wallet balance](https://base93-apis.apidog.io/get-wallet-balance-21837261e0.md): - Endpoints > Wallet [Create topup request](https://base93-apis.apidog.io/create-topup-request-21837262e0.md): - Endpoints > Support [All tickets](https://base93-apis.apidog.io/all-tickets-22799555e0.md): - Endpoints > Support [Get a ticket](https://base93-apis.apidog.io/get-a-ticket-22799578e0.md): - Endpoints > Support [Create a ticket](https://base93-apis.apidog.io/create-a-ticket-21837268e0.md): - Endpoints > Notifications [All notifications](https://base93-apis.apidog.io/all-notifications-22817043e0.md): - Endpoints > Notifications [Mark as read](https://base93-apis.apidog.io/mark-as-read-22817044e0.md): - Endpoints > Notifications [Pusher auth](https://base93-apis.apidog.io/pusher-auth-22817049e0.md): - Endpoints > Renewals [Search companies for renewal](https://base93-apis.apidog.io/search-companies-for-renewal-33929788e0.md): Returns companies that have completed setup (any agent's companies) whose name matches the search term. Minimum 3 characters required. - Endpoints > Renewals [Get dynamic form config for a jurisdiction](https://base93-apis.apidog.io/get-dynamic-form-config-for-a-jurisdiction-33929789e0.md): Returns all renewal form configs that match the given jurisdiction (country, company_type, freezone). Each config has a `renewal_type` and a list of dynamic sections/fields to render in the request form. Empty-string values for company_type and freezone are treated as "any" (wildcard). - Endpoints > Renewals [List renewal requests](https://base93-apis.apidog.io/list-renewal-requests-33929790e0.md): Returns a paginated list of the authenticated agent's renewal requests. - Endpoints > Renewals [Request a quote revision](https://base93-apis.apidog.io/request-a-quote-revision-33929795e0.md): Moves the renewal back to `revision_requested` status, notifying the operator that the agent wants changes to the quote. Only valid when the renewal is in `quoted` status. - Endpoints > Renewals [Approve quote and confirm wallet payment](https://base93-apis.apidog.io/approve-quote-and-confirm-wallet-payment-33929794e0.md): Verifies the OTP (skipped for external users), debits the quoted total from the agent's wallet, and advances the renewal status to `awaiting_approval` → `payment_pending`. - Endpoints > Renewals [Initiate quote payment — send OTP](https://base93-apis.apidog.io/initiate-quote-payment-send-otp-33929793e0.md): Verifies that the agent's wallet balance is sufficient to cover the quoted total, then sends a one-time password to the agent's email for payment confirmation. External users receive the OTP directly in the response body instead of via email. - Endpoints > Renewals [Get a renewal by ID](https://base93-apis.apidog.io/get-a-renewal-by-id-33929792e0.md): Returns the full renewal record. Only accessible if the renewal belongs to the authenticated agent. - Endpoints > Renewals [Submit a renewal request](https://base93-apis.apidog.io/submit-a-renewal-request-33929791e0.md): Creates a new renewal request for the authenticated agent. The request is multipart/form-data. Text fields are sent as regular form fields; dynamic file fields from the form config are sent with the key prefix `af_` followed by the field name (e.g. `af_trade_license`). - Endpoints > Files [Get a one-time download URL for any file owned by the agent](https://base93-apis.apidog.io/get-a-one-time-download-url-for-any-file-owned-by-the-agent-36285869e0.md): Issues a one-time token and returns the stream URL. - Endpoints > Immigration [List immigration objectives](https://base93-apis.apidog.io/list-immigration-objectives-44968213e0.md): Active objectives, ordered for display. Use their `_id`s in the assessment's `objectives` array. - Endpoints > Immigration [Submit an assessment and get matching programmes](https://base93-apis.apidog.io/submit-an-assessment-and-get-matching-programmes-44968214e0.md): Stores the client's answers and returns eligible programmes ranked by score (0–100). - Endpoints > Immigration [Get application pre-fill](https://base93-apis.apidog.io/get-application-pre-fill-44969461e0.md): Everything needed to start an application for one matched programme: the client's details - Endpoints > Immigration [Create an application (draft or submitted)](https://base93-apis.apidog.io/create-an-application-draft-or-submitted-44969462e0.md): Creates an application for a programme matched by an assessment. - Endpoints > Immigration [List applications](https://base93-apis.apidog.io/list-applications-44969463e0.md): Your applications, newest first. Returns drafts unless `status=submitted` is passed. - Endpoints > Immigration [Get an application](https://base93-apis.apidog.io/get-an-application-44969464e0.md): The full application, with the programme, countries and uploaded file details filled in. - Endpoints > Immigration [Update a draft (save again or submit)](https://base93-apis.apidog.io/update-a-draft-save-again-or-submit-44969465e0.md): Saves a draft again, or submits it with `status: submitted` (same rules as create). - Endpoints > Immigration [Delete a draft](https://base93-apis.apidog.io/delete-a-draft-44969466e0.md): Deletes a draft application and its uploaded files. Submitted applications can't be deleted. ## Schemas - [QuoteConfig](https://base93-apis.apidog.io/quoteconfig-14014245d0.md): - [CreatePaymentSuccessResponse](https://base93-apis.apidog.io/createpaymentsuccessresponse-14014291d0.md): - [SuccessEnvelope](https://base93-apis.apidog.io/successenvelope-14412624d0.md): - [StandardSuccess](https://base93-apis.apidog.io/standardsuccess-14467748d0.md): - [ErrorEnvelope](https://base93-apis.apidog.io/errorenvelope-14412625d0.md): - [ErrorResponse](https://base93-apis.apidog.io/errorresponse-14467749d0.md): - [FieldValidation](https://base93-apis.apidog.io/fieldvalidation-14468107d0.md): - [DirectApplication](https://base93-apis.apidog.io/directapplication-15129479d0.md): - [YesNo](https://base93-apis.apidog.io/yesno-18172665d0.md): - [FileAttachment](https://base93-apis.apidog.io/fileattachment-14467750d0.md): - [Company](https://base93-apis.apidog.io/company-14412626d0.md): - [QuoteBreakdown](https://base93-apis.apidog.io/quotebreakdown-14467751d0.md): - [Field](https://base93-apis.apidog.io/field-14468108d0.md): - [Objective](https://base93-apis.apidog.io/objective-18172666d0.md): - [Quote](https://base93-apis.apidog.io/quote-14467752d0.md): - [Section](https://base93-apis.apidog.io/section-14468109d0.md): - [AssessmentRequest](https://base93-apis.apidog.io/assessmentrequest-18172667d0.md): - [RenewalFormConfigBody](https://base93-apis.apidog.io/renewalformconfigbody-14468110d0.md): - [ProcessingStep](https://base93-apis.apidog.io/processingstep-14467753d0.md): - [ProgrammeSummary](https://base93-apis.apidog.io/programmesummary-18172668d0.md): - [CreateCompanyRequest](https://base93-apis.apidog.io/createcompanyrequest-14014250d0.md): - [ProgrammeMatch](https://base93-apis.apidog.io/programmematch-18172669d0.md): - [RenewalFormConfig](https://base93-apis.apidog.io/renewalformconfig-14468111d0.md): - [CompletedDetails](https://base93-apis.apidog.io/completeddetails-14467754d0.md): - [ExternalCompany](https://base93-apis.apidog.io/externalcompany-14467755d0.md): - [ApplicationPrefill](https://base93-apis.apidog.io/applicationprefill-18173223d0.md): - [Renewal](https://base93-apis.apidog.io/renewal-14467756d0.md): - [Applicant](https://base93-apis.apidog.io/applicant-18173224d0.md): - [FormConfigField](https://base93-apis.apidog.io/formconfigfield-14467757d0.md): - [ApplicantFields](https://base93-apis.apidog.io/applicantfields-18173225d0.md): - [FormConfigSection](https://base93-apis.apidog.io/formconfigsection-14467758d0.md): - [FamilyMember](https://base93-apis.apidog.io/familymember-18173226d0.md): - [FamilyMemberFields](https://base93-apis.apidog.io/familymemberfields-18173227d0.md): - [FormConfig](https://base93-apis.apidog.io/formconfig-14467759d0.md): - [Funds](https://base93-apis.apidog.io/funds-18173228d0.md): - [DocumentMeta](https://base93-apis.apidog.io/documentmeta-18173229d0.md): - [Declarations](https://base93-apis.apidog.io/declarations-18173230d0.md): - [StoredDeclarations](https://base93-apis.apidog.io/storeddeclarations-18173231d0.md): - [ApplicationRequest](https://base93-apis.apidog.io/applicationrequest-18173232d0.md): - [ApplicationStatus](https://base93-apis.apidog.io/applicationstatus-18173233d0.md): - [Application](https://base93-apis.apidog.io/application-18173234d0.md): - [ApplicationDetail](https://base93-apis.apidog.io/applicationdetail-18173235d0.md): - [CountryRef](https://base93-apis.apidog.io/countryref-18173236d0.md): - [CountryName](https://base93-apis.apidog.io/countryname-18173237d0.md): - [ApplicationListItem](https://base93-apis.apidog.io/applicationlistitem-18173238d0.md):