Zyphe SDK: External alerts API

The SDK: External alerts API from Zyphe — 1 operation(s) for sdk: external alerts.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

POST /sdk/organizations/{organization_id}/external-alerts Push an alert #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zyphe-com:zyphe-com-sdk-external-alerts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

zyphe-com-sdk-external-alerts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'zyphe-sdk SDK: External alerts API'
  description: ''
  version: 3.15.0
tags:
- name: 'SDK: External alerts'
paths:
  /sdk/organizations/{organization_id}/external-alerts:
    post:
      tags:
      - 'SDK: External alerts'
      summary: Push an alert
      description: 'Sends an alert your server holds for one of your connections, already in the

        provider-neutral shape, as the connection''s provider would send it. The connection must be

        your organization''s, in the environment of your key, and not disabled (`409`). `contentHash`

        is the lowercase hex SHA-256 of the canonical JSON (RFC 8785) of the `alert` object as you

        send it, without its `contentHash` member; a mismatch is refused (`400`). Sending the same

        `eventRef` again with the same content is safe: the answer is `200` with `duplicate: true` and

        nothing is written. The same `eventRef` with other content is a conflict (`409`).'
      operationId: sdkPushExternalAlert
      parameters:
      - name: organization_id
        in: path
        description: Organization ID
        required: true
        schema:
          type: string
          format: uuid
      - name: sandbox
        in: query
        required: true
        schema:
          type: boolean
        style: form
      - name: locale
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/Locale'
        style: form
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushExternalAlertPayload'
        required: true
      responses:
        '200':
          description: The connection had already received this event with the same content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushExternalAlertResponse'
        '201':
          description: The event was recorded and merged into its alert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushExternalAlertResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaxeError'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaxeError'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaxeError'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaxeError'
        '409':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaxeError'
        '429':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaxeError'
        '500':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaxeError'
      security:
      - x-api-key: []
components:
  schemas:
    ExternalNormalizedAlert:
      type: object
      description: 'An alert as every provider adapter maps a webhook into it, and as the push API accepts it.

        Stored whole on the event that carried it.'
      required:
      - eventRef
      - contentHash
      - providerAlertRef
      - kind
      - subject
      properties:
        contentHash:
          type: string
          description: 'The hash of the delivery''s content: the same `eventRef` with another hash is a conflict.'
        eventRef:
          type: string
          description: 'The provider''s id for this delivery: a redelivery carries the same one.'
        evidence:
          type: array
          items:
            $ref: '#/components/schemas/ExternalEvidenceInput'
        hits:
          type: array
          items:
            $ref: '#/components/schemas/ExternalHit'
        kind:
          $ref: '#/components/schemas/ExternalAlertKind'
        occurredAt:
          type:
          - string
          - 'null'
          format: date-time
          description: When the provider says the event happened.
        providerAlertRef:
          type: string
          description: The provider's id for the alert the event is about; several events update one alert.
        providerDecision:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/ExternalProviderDecision'
        subject:
          $ref: '#/components/schemas/ExternalSubjectRef'
    ExternalEvidenceInput:
      type: object
      description: One piece of evidence to freeze on an alert. Its content is hashed when it is stored.
      required:
      - sourceRef
      - kind
      - observedAt
      - content
      properties:
        content:
          type: object
        kind:
          $ref: '#/components/schemas/ExternalEvidenceKind'
        observedAt:
          type: string
          format: date-time
        sourceRef:
          type: string
          description: Where the evidence comes from, in the provider's terms (an endpoint, a document id, …).
    ExternalProviderDecisionCategory:
      type: string
      description: 'The provider''s decision mapped onto the few outcomes every provider shares. The provider''s own

        word stays beside it, in the decision''s `state`.'
      enum:
      - APPROVED
      - REJECTED
      - ON_HOLD
      - PENDING
      - RESUBMISSION_REQUESTED
      - RESET
      - UNKNOWN
    ExternalEvidenceKind:
      type: string
      description: What an evidence row holds.
      enum:
      - PROVIDER_PAYLOAD
      - APPLICANT
      - DOCUMENT
      - SCREENING
      - LOOKUP
      - NOTE
    ExternalSubjectRef:
      type: object
      description: 'Who an alert is about, as the provider identifies them. Stored on the alert; `identityId` beside

        it links a Zyphe identity only when the customer (or a later matcher) says so, never from these

        fields on their own.'
      required:
      - kind
      - providerSubjectId
      properties:
        country:
          type:
          - string
          - 'null'
          description: ISO 3166-1 alpha-2.
        dateOfBirth:
          type:
          - string
          - 'null'
          format: date
        kind:
          $ref: '#/components/schemas/ExternalSubjectKind'
        name:
          type:
          - string
          - 'null'
        providerSubjectId:
          type: string
          description: 'The provider''s own id for the subject: a Sumsub applicant id, a ComplyAdvantage entity id.'
        registrationNumber:
          type:
          - string
          - 'null'
          description: A company's registration number.
    BaxeError:
      type: object
      required:
      - code
      - errorTag
      properties:
        code:
          type: integer
          format: int32
          minimum: 0
        errorTag:
          $ref: '#/components/schemas/ErrorTags'
        message:
          type:
          - string
          - 'null'
    ExternalAlertKind:
      type: string
      description: 'What a provider raised an alert about: the shape of the record it asks a reviewer to resolve.'
      enum:
      - SCREENING_HIT
      - APPLICANT_REVIEW
      - MONITORING_UPDATE
      - SESSION_DECISION
      - TRANSACTION
    ErrorTags:
      type: string
      enum:
      - unexpected
      - bad_request
      - permission_denied
      - request_deserialization
      - database
      - invalid_email_or_password
      - user_not_confirmed
      - verify_password
      - send_email
      - user_disabled
      - missing_authorization_header
      - invalid_authorization_header
      - token_generation
      - user_not_found
      - email_already_taken
      - invalid_invite
      - wrong_invite_user
      - invite_not_found
      - email_already_verified
      - flow_not_found
      - flow_step_not_found
      - organization_not_found
      - organization_under_retention
      - kyb_result_not_soft_deleted
      - kyb_result_without_flow_result
      - kyb_result_under_retention
      - kyb_result_forced_deletion_only_in_production
      - kyb_result_deletion_already_requested
      - kyb_result_deletion_self_approval
      - kyb_result_deletion_request_expired
      - kyb_result_deletion_request_not_pending
      - kyb_declaration_requires_discovery
      - storage
      - verification_request_not_found
      - document_reader
      - organization_settings_not_found
      - theme_not_found
      - start_job
      - result_not_found
      - kyc_grant_not_found
      - document_not_found
      - service_invocation
      - trigger_webhook
      - too_many_invites
      - invite_already_used
      - invite_already_accepted
      - invite_already_revoked
      - invite_revoked
      - invite_expired
      - invite_already_exists
      - share_already_revoked
      - form_not_found
      - form_in_use
      - flow_step_configuration_not_found
      - identity_not_found
      - step_order_violation
      - serialization
      - mock_data
      - api_key_not_found
      - not_implemented
      - access_grant
      - rate_limit_exceeded
      - missing_api_key
      - invalid_api_key
      - origin_not_allowed
      - step_already_completed
      - send_sms
      - send_notification
      - parse_error
      - inviter_organization_not_found
      - forbidden
      - passkey_authentication
      - internal
      - invalid_email
      - email_domain_not_allowed
      - work_email_required
      - graph_validation
      - external_api
      - share_already_has_write_access
      - share_does_not_have_write_access
      - write_access_already_revoked
      - invite_required
      - billing
      - billing_email_required
      - product_not_active
      - registration_offer_not_found
      - registration_offer_unavailable
      - registration_offer_invalid_terms
      - topup_pack_unlocks_unpriced
      - credit_adjustment_below_paid_credits
      - no_stripe_customer
      - score_rule_not_found
      - score_rule_field_outside_scores
      - score_rule_unknown_score
      - score_rule_score_disabled
      - score_rule_score_not_yet_computed
      - score_rule_set_score_out_of_range
      - score_rule_effect_kind_mismatch
      - kyb_case_not_decidable
      - kyb_case_not_ready
      - kyb_case_exception_required
      - kyb_case_rejecting_hit
      - kyb_case_reason_required
      - kyb_case_decision_not_authorized
      - kyb_case_second_signature_required
      - kyb_case_contact_required
      - kyb_case_contact_locked
      - kyb_screening_case_moved
      - kyb_screening_case_reopen_not_allowed
      - screening_proposal_changed
      - kyb_case_country_locked
      - kyb_incorporation_date_not_past
      - kyb_registration_number_is_registry_entry
      - kyb_registration_number_unrecognised
      - compliance_policy_open_questions
      - tin_check_invalid_tin
      - tin_check_unavailable
      - tin_check_ein_required
      - tin_check_mismatch
      - tin_check_attempts_exhausted
      - flow_template_not_found
      - flow_template_key_taken
      - flow_template_invalid_key
      - flow_template_source_is_template
      - flow_template_analyst_entry_invalid
      - flow_template_kyc_flow_invalid
      - flow_template_kyc_in_use
      - flow_template_empty
      - flow_template_kind_mismatch
      - flow_template_steps_invalid
      - flow_template_kyc_not_active
      - flow_template_kyc_not_available
      - flow_template_sandbox_only
      - flow_template_kyc_missing_in_production
      - flow_draft_not_found
      - flow_draft_version_conflict
      - tm_case_changed
      - tm_case_selection_invalid
      - sar_subject_not_suspicious
      - sar_decision_concurrent
      - case_handed_off
      - tm_import_file_empty
      - tm_import_file_too_many_rows
      - tm_import_file_invalid_format
      - tm_import_file_invalid_mode
      - tm_import_file_invalid_customer_field
      - tm_import_file_invalid_columns
      - tm_import_file_not_utf8
      - tm_import_file_unknown_field
      - tm_import_file_mapped_column_missing
      - tm_import_file_required_column_missing
      - tm_import_file_amount_column_missing
      - tm_import_file_currency_column_missing
      - tm_import_file_no_rows
      - tm_import_file_unclosed_quote
      - tm_import_file_nacha_customer_field
      - tm_import_file_not_text
      - tm_import_file_not_fixed_width
      - tm_import_file_record_length
      - tm_import_file_no_file_header
      - tm_import_file_invalid_creation_date
      - tm_import_file_batch_header_inside_batch
      - tm_import_file_entry_outside_batch
      - tm_import_file_amount_not_a_number
      - tm_import_file_addenda_outside_batch
      - tm_import_file_batch_control_outside_batch
      - tm_import_file_file_control_inside_batch
      - tm_import_file_unknown_record_type
      - tm_import_file_batch_without_control
      - tm_import_file_no_file_control
      - tm_import_file_file_control_mismatch
      - tm_import_file_file_control_not_a_number
      - tm_import_file_batch_control_mismatch
      - tm_import_file_batch_control_not_a_number
      - tm_import_file_no_entries
      - tm_import_already_imported
      - tm_import_not_covered
      - tm_import_no_active_subscription
      - tm_import_confirm_not_draft
      - tm_import_no_valid_row
      - tm_import_confirmed_or_discarded_meanwhile
      - tm_import_not_queued
      - tm_import_discard_not_draft
      - tm_import_history_not_sent
      - tm_import_send_not_completed
      - tm_import_already_sent
      - tm_import_not_pending_of_import
      - tm_import_history_needs_org_admin
      - tm_import_no_default_policy
      - tm_import_policy_unavailable
      - tm_import_policy_changed
      - tm_import_purpose_changed
      - tm_import_clause_review_failed
      - tm_import_job_not_queued
      - tm_import_policy_not_default
      - tm_policy_not_found
      - tm_policy_name_taken
      - tm_policy_draft_exists
      - tm_policy_draft_changed
      - tm_policy_extraction_pending
      - tm_policy_draft_outdated
      - tm_policy_name_empty
      - tm_policy_name_too_long
      - tm_policy_description_too_long
      - tm_policy_unknown_jurisdiction
      - tm_policy_too_many_rules
      - tm_policy_too_many_clauses
      - tm_policy_clause_without_id
      - tm_policy_duplicate_clause
      - tm_policy_clause_without_text
      - tm_policy_duplicate_rule_key
      - tm_policy_rule_without_name
      - tm_policy_invalid_rule
      - tm_policy_rule_unknown_clause
      - tm_policy_rule_agent_clause
      - tm_policy_nothing_to_publish
      - tm_policy_clause_unimplemented
      - tm_policy_question_open
      - tm_policy_rule_unreviewed
      - tm_policy_is_default
      - tm_policy_not_published
      - tm_policy_archived
      - tm_policy_document_rejected
      - tm_policy_review_unknown_clause
      - tm_policy_review_unknown_rule
      - tm_policy_review_unknown_question
      - tm_policy_review_empty_clause
      - flow_draft_name_invalid
      - flow_draft_incomplete
      - flow_draft_kyb_invalid
      - flow_draft_agent_research_invalid
      - flow_draft_business_info_form_invalid
      - flow_draft_documents_invalid
      - flow_draft_ubos_invalid
      - flow_draft_directors_invalid
      - two_factor_invalid_code
      - two_factor_locked
      - two_factor_already_enabled
      - two_factor_not_enabled
      - two_factor_required_by_organization
      - two_factor_required_by_platform
      - two_factor_reauthentication_required
      - two_factor_reauthentication_failed
      - two_factor_reauthentication_locked
      - company_website_analysis_not_found
      - company_website_analysis_invalid_url
      - company_website_analysis_limit_reached
      - company_website_analysis_not_completed
      - company_website_analysis_no_brand
      - company_website_analysis_disabled
      - step_still_processing
      - step_moderation_not_allowed
      - operator_upload_not_enabled
      - operator_upload_no_passed_id
      - operator_upload_no_poa_step
      - operator_upload_steps_incomplete
      - operator_upload_file_too_large
      - dv_operator_upload_fraud_flagged
      - dv_operator_upload_admin_review
      - dv_operator_upload_attempts_exhausted
      - dv_operator_upload_locked
      - kyb_document_upload_not_allowed
      - kyb_base_price_unavailable
      - kyb_discovery_country_unsupported
      - connection_duplicate
      - connection_live_disabled
      - connection_provider_not_supported
      - connection_credential_invalid
      - connection_credential_revoked
      - connection_credential_refused
      - connection_provider_unavailable
      - connection_no_webhook_secret
      - connection_no_test_delivery
      - connection_guard_policy_not_applicable
      - connection_auto_pilot_no_signed_backtest
      - connection_auto_pilot_backtest_expired
      - external_alert_action_invalid
      - external_alert_action_not_permitted
      - external_alert_changed
      - guard_policy_invalid
      - guard_policy_version_taken
    ExternalProviderDecision:
      type: object
      description: What the provider decided about the subject, when the alert carries a decision.
      required:
      - category
      - state
      properties:
        category:
          $ref: '#/components/schemas/ExternalProviderDecisionCategory'
        decidedAt:
          type:
          - string
          - 'null'
          format: date-time
        reason:
          type:
          - string
          - 'null'
        state:
          type: string
          description: The provider's own word for the state, as it sent it (Sumsub `RED`, `GREEN`, …).
    ExternalHit:
      type: object
      description: One match a screening returned, as the provider described it.
      required:
      - providerHitRef
      - matchedName
      properties:
        confirmedByProvider:
          type: boolean
          description: The provider already confirmed the match as true.
        countries:
          type: array
          items:
            type: string
        dateOfBirth:
          type:
          - string
          - 'null'
          description: The matched entity's date of birth as the provider wrote it, which may be partial.
        entityType:
          type:
          - string
          - 'null'
        lists:
          type: array
          items:
            type: string
          description: The lists the match is on (sanctions, PEP, adverse media, …), in the provider's words.
        matchedName:
          type: string
        providerHitRef:
          type: string
          description: The provider's id for the match.
        score:
          type:
          - number
          - 'null'
          format: float
          description: The provider's match score, when it gives one.
        whitelistedByProvider:
          type: boolean
          description: The provider already whitelisted the match as false.
    ExternalSubjectKind:
      type: string
      description: Whether an alert's subject is a natural person or a company.
      enum:
      - PERSON
      - COMPANY
    Locale:
      type: string
      description: Locale identifier
      enum:
      - en
      - it
      - de
      - es
      - fr
      - hi
      - id
      - pt
    PushExternalAlertPayload:
      type: object
      description: 'An alert an organization''s server sends Zyphe for one of its connections, already in the

        provider-neutral shape. The alert''s `contentHash` is the lowercase hex SHA-256 of the

        canonical JSON (RFC 8785) of the `alert` object as sent, without its `contentHash` member:

        sending the same `eventRef` again with the same content is a retry, with other content a

        conflict.'
      required:
      - connectionId
      - alert
      properties:
        alert:
          $ref: '#/components/schemas/ExternalNormalizedAlert'
          description: 'The alert, in the provider-neutral shape. Its `contentHash` is computed over this object

            exactly as it is sent.'
        connectionId:
          type: string
          format: uuid
          description: The connection the alert comes through, in the key's environment.
      additionalProperties: false
    PushExternalAlertResponse:
      type: object
      description: What pushing an alert did.
      required:
      - alertId
      - eventId
      - alertIsNew
      - duplicate
      properties:
        alertId:
          type: string
          format: uuid
          description: The alert the event was merged into.
        alertIsNew:
          type: boolean
          description: The event created the alert.
        duplicate:
          type: boolean
          description: 'The connection had already received this event with the same content: nothing was written.'
        eventId:
          type: string
          format: uuid
          description: The event as recorded.
  securitySchemes:
    jwt-auth:
      type: apiKey
      in: header
      name: authorization
      description: Set the token string including the 'Bearer ' prefix.
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: Set your API key in the x-api-key header.