> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onefirewall.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a url record

> Served locally on CLOUD; on ONPREM forwarded to the cloud unless `proxy=LOCAL` or the `agid` connector is configured LOCAL.

**Roles:** Super Admin (0), Member (1), Member Admin (10), Member Mobile (20).

**Cost:** 32 Credit Coins.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/urls/{url}
openapi: 3.0.3
info:
  title: OneFirewall Server API
  version: 4.1.0 (2026-11-22)
  description: >
    Public edition: the threat-intelligence, connector, traffic and dashboard
    endpoints used by the OneFirewall web app. Every operation carries a request
    example (cURL), parameter and body examples and, where the call returns
    data, an example response. Account, administration and reporting endpoints
    are not listed.


    REST API of the OneFirewall server: a multi-tenant, crowd-sourced
    threat-intelligence platform. Member organizations report malicious
    IPv4/IPv6 addresses, domains, URLs and file hashes; the server computes
    trust-weighted consensus scores and each organization pulls blocklists for
    its firewalls. The same data is exposed as STIX 2.1 through a TAXII 2.1
    server.


    This document is generated from the server code (`app.js` and
    `app/Api_*.js`).


    ## Authentication


    Send the JWT from `POST /api/v1/login` (completed with `POST
    /api/v1/login/otp` when 2FA is active), from `GET /api/v1/profile/jwt`, or
    from `POST /api/v1/saml/exchange` as `Authorization: Bearer <token>`.


    The same middleware also accepts, for compatibility:


    - `Authorization: Basic base64(<guid>:<token>)`, used by older connectors;

    - the `?authorization=<token>` query parameter (deprecated: URLs end up in
    logs; avoid it).


    Tokens are signed with a per-user secret held by the server, so they cannot
    be validated offline. `DELETE /api/v1/profile/jwt` and a password reset
    revoke every token of the user.


    ## Roles


    | Role | Name |

    |---|---|

    | 0 | Super Admin |

    | 1 | Member |

    | 2 | Guest |

    | 3 | Read Only |

    | 10 | Member Admin (manages its own organization) |

    | 20 | Member Mobile |

    | 999 | Disabled (new sign-ups, SSO users waiting for approval) |


    Each operation lists the roles it accepts; other roles get 403 (a few legacy
    handlers answer 401 instead, noted per operation).


    ## Organizations and Credit Coins


    Every user belongs to an organization. Threat-intelligence calls debit
    Credit Coins from it (cost noted per operation) and answer 402 when the
    balance is too low. An organization with 0 Credit Coins gets 402 on every
    threat-intelligence endpoint (`/ips`, `/ipv4`, `/ipv6`, `/urls`, `/domains`,
    `/files`, `/feeds`, `/flat`, `/intel`, `/info`, `/stix2`, `/taxii2`). An
    organization with a feed delay (`delay` > 0) cannot use STIX2, TAXII2 or the
    consensus feed.


    A Super Admin without an organization receives 409 `ORGANIZATION_REQUIRED`
    on every call except the organization-selection ones (organization status,
    join, list, create).


    ## CLOUD and ONPREM


    The same server runs as the OneFirewall cloud (`OFA_INSTANCE=CLOUD`) or as
    an on-premise installation (`ONPREM`). On ONPREM, IPv6, domain, URL, file,
    info and overview requests are forwarded to the cloud unless `proxy=LOCAL`
    is given or the connector (`agid`) is configured LOCAL.


    ## Known issues


    - `GET /api/v1/otp` always answers 405 and is not listed; 2FA setup is `POST
    /api/v1/otp` (re-authentication required).


    ## Errors and limits


    Most errors are plain text; some are JSON `{"message": ...}`. Unknown
    `/api/*` routes answer 404 `{"message":"Endpoint not found"}`. Request
    bodies are limited to 5 MB.


    The application rate-limits its unauthenticated endpoints (per IP and per
    account, shared by all replicas). The edge gateway in front of the API
    applies rate limiting to every route and may add `RateLimit` / `Retry-After`
    headers.
  contact:
    name: OneFirewall support
    email: support@onefirewall.com
    url: https://www.onefirewall.com
  license:
    name: Proprietary
    url: https://www.onefirewall.com
servers:
  - url: https://app.onefirewall.com
    description: OneFirewall cloud (production)
    x-internal: false
security:
  - bearerAuth: []
tags:
  - name: System
    description: Health and version.
  - name: Graphs
    description: Traffic dashboards and threat updates.
  - name: IPv4
    description: IPv4 threat rules, submissions and blocklists.
  - name: IPv6
    description: IPv6 threat records.
  - name: Domains
    description: Domain threat records.
  - name: URLs
    description: URL threat records.
  - name: Files
    description: File-hash threat records.
  - name: Intel
    description: Indicator lookups (ASN/geo, DNS, cross-type intelligence).
  - name: STIX2
    description: STIX 2 objects.
  - name: Connectors
    description: Firewall connectors (agents) status and configuration.
  - name: Traffic
    description: Firewall traffic ingestion.
paths:
  /api/v1/urls/{url}:
    get:
      tags:
        - URLs
      summary: Get a url record
      description: >-
        Served locally on CLOUD; on ONPREM forwarded to the cloud unless
        `proxy=LOCAL` or the `agid` connector is configured LOCAL.


        **Roles:** Super Admin (0), Member (1), Member Admin (10), Member Mobile
        (20).


        **Cost:** 32 Credit Coins.
      operationId: getURL
      parameters:
        - name: url
          in: path
          description: URL (URL-encoded).
          schema:
            type: string
            maxLength: 4096
            pattern: ^\S+$
          required: true
          example: http://malicious-example.com/login.php
        - name: proxy
          in: query
          description: >-
            ONPREM only: `LOCAL` serves the request from this installation; any
            other value forwards it to the OneFirewall cloud (installation
            Alliance key). Ignored on CLOUD.
          schema:
            type: string
            maxLength: 16
            pattern: ^[A-Za-z]+$
          required: false
          example: LOCAL
        - name: agid
          in: query
          description: >-
            Connector id. Records a connector feedback event; on ONPREM, without
            `proxy`, the connector's configured mode (LOCAL/CLOUD) decides where
            the request is served.
          schema:
            type: string
            maxLength: 128
            pattern: ^[A-Za-z0-9][A-Za-z0-9._:@-]*$
            description: Connector (agent) id.
          required: false
          example: OFA-AGENT-7f3k9QxL2mN4pR8s
      responses:
        '200':
          description: Record.
          headers:
            RateLimit:
              description: >-
                Rate-limit state (IETF `RateLimit` header). Added by the edge
                gateway in front of the API when rate limiting is configured
                there; the Node.js application itself does not emit it.
              required: false
              schema:
                type: string
                maxLength: 256
                pattern: ^[\x20-\x7E]*$
            Access-Control-Allow-Origin:
              description: >-
                CORS origin. The API is served same-origin and the Node.js
                application does not emit CORS headers; present only when the
                edge gateway adds it.
              required: false
              schema:
                type: string
                maxLength: 2048
                pattern: ^[\x20-\x7E]*$
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IocStaticRecord'
              example:
                url: http://malicious-example.com/login.php
                ts: '2026-11-22T21:40:11Z'
                entry_ts: '2026-11-19T10:02:45Z'
                score: 655
                tags:
                  - phishing
                total_members: 4
                total_reports: 11
                blocked_by:
                  - OFA-GID-a1B2c3D4e5F6g7H8
                unblocked_by: []
                members: []
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
        '502':
          $ref: '#/components/responses/BadGateway'
        '504':
          $ref: '#/components/responses/GatewayTimeout'
        4XX:
          $ref: '#/components/responses/ClientError'
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: Shell
          label: cURL
          source: >-
            curl -X GET
            'https://app.onefirewall.com/api/v1/urls/http%3A%2F%2Fmalicious-example.com%2Flogin.php'
            \
              -H "Authorization: Bearer $OFA_TOKEN"
components:
  schemas:
    IocStaticRecord:
      type: object
      description: >-
        Domain, URL, IPv6 or file-hash record (one of the identifying fields is
        set). User secrets are scrubbed.
      properties:
        domain:
          type: string
          maxLength: 253
          pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
          description: Domain records.
        url:
          type: string
          maxLength: 4096
          pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
          description: URL records.
        ipv6:
          type: string
          format: ipv6
          maxLength: 45
          description: IPv6 records.
        md5:
          type: string
          maxLength: 32
          pattern: ^[A-Fa-f0-9]{32}$
        sha1:
          type: string
          maxLength: 40
          pattern: ^[A-Fa-f0-9]{40}$
        sha256:
          type: string
          maxLength: 64
          pattern: ^[A-Fa-f0-9]{64}$
        file_name:
          type: string
          maxLength: 1024
          pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
        file_type:
          type: string
          maxLength: 128
          pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
        file_bytes:
          type: integer
          format: int64
          minimum: 0
          maximum: 9007199254740991
        ts:
          type: string
          format: date-time
          maxLength: 64
        entry_ts:
          type: string
          format: date-time
          maxLength: 64
        score:
          type: number
          format: double
          minimum: 0
          maximum: 1000
        tags:
          type: array
          items:
            type: string
            maxLength: 64
            pattern: ^[A-Za-z0-9_.:\- ]+$
          maxItems: 200
        total_members:
          type: integer
          format: int32
          minimum: 0
          maximum: 2147483647
        total_reports:
          type: integer
          format: int32
          minimum: 0
          maximum: 2147483647
        blocked_by:
          type: array
          items:
            type: string
            maxLength: 128
            pattern: ^[A-Za-z0-9][A-Za-z0-9._:@-]*$
            description: Organization GID (`OFA-GID-` + 16 characters).
            example: OFA-GID-a1B2c3D4e5F6g7H8
          maxItems: 10000
        unblocked_by:
          type: array
          items:
            type: string
            maxLength: 128
            pattern: ^[A-Za-z0-9][A-Za-z0-9._:@-]*$
            description: Organization GID (`OFA-GID-` + 16 characters).
            example: OFA-GID-a1B2c3D4e5F6g7H8
          maxItems: 10000
        members:
          type: array
          items:
            type: object
            description: Per-organization submissions.
          maxItems: 10000
    TextMessage:
      type: string
      maxLength: 4000
      pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
      description: Plain-text message.
    Message:
      type: object
      description: >-
        JSON error / status body. Most handlers answer errors as plain text; a
        few use this JSON shape.
      properties:
        message:
          type: string
          maxLength: 4000
          pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
        code:
          type: string
          maxLength: 64
          pattern: ^[A-Z_]+$
        required:
          type: string
          enum:
            - current_otp
            - password
          description: 'OTP setup: which re-authentication field is required.'
  responses:
    Unauthorized:
      description: >-
        Missing, invalid or revoked token, unknown or disabled user, or the
        token still needs the OTP step (`OTP Authentication Failed - OTP
        Required`).
      headers:
        RateLimit:
          description: >-
            Rate-limit state (IETF `RateLimit` header). Added by the edge
            gateway in front of the API when rate limiting is configured there;
            the Node.js application itself does not emit it.
          required: false
          schema:
            type: string
            maxLength: 256
            pattern: ^[\x20-\x7E]*$
        Access-Control-Allow-Origin:
          description: >-
            CORS origin. The API is served same-origin and the Node.js
            application does not emit CORS headers; present only when the edge
            gateway adds it.
          required: false
          schema:
            type: string
            maxLength: 2048
            pattern: ^[\x20-\x7E]*$
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    PaymentRequired:
      description: >-
        Not enough Credit Coins for this call, or the organization has 0 Credit
        Coins (every threat-intelligence endpoint answers 402 in that case).
      headers:
        RateLimit:
          description: >-
            Rate-limit state (IETF `RateLimit` header). Added by the edge
            gateway in front of the API when rate limiting is configured there;
            the Node.js application itself does not emit it.
          required: false
          schema:
            type: string
            maxLength: 256
            pattern: ^[\x20-\x7E]*$
        Access-Control-Allow-Origin:
          description: >-
            CORS origin. The API is served same-origin and the Node.js
            application does not emit CORS headers; present only when the edge
            gateway adds it.
          required: false
          schema:
            type: string
            maxLength: 2048
            pattern: ^[\x20-\x7E]*$
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    Forbidden:
      description: The caller's role or license does not allow this operation.
      headers:
        RateLimit:
          description: >-
            Rate-limit state (IETF `RateLimit` header). Added by the edge
            gateway in front of the API when rate limiting is configured there;
            the Node.js application itself does not emit it.
          required: false
          schema:
            type: string
            maxLength: 256
            pattern: ^[\x20-\x7E]*$
        Access-Control-Allow-Origin:
          description: >-
            CORS origin. The API is served same-origin and the Node.js
            application does not emit CORS headers; present only when the edge
            gateway adds it.
          required: false
          schema:
            type: string
            maxLength: 2048
            pattern: ^[\x20-\x7E]*$
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    NotFound:
      description: The resource does not exist (or is not visible to the caller).
      headers:
        RateLimit:
          description: >-
            Rate-limit state (IETF `RateLimit` header). Added by the edge
            gateway in front of the API when rate limiting is configured there;
            the Node.js application itself does not emit it.
          required: false
          schema:
            type: string
            maxLength: 256
            pattern: ^[\x20-\x7E]*$
        Access-Control-Allow-Origin:
          description: >-
            CORS origin. The API is served same-origin and the Node.js
            application does not emit CORS headers; present only when the edge
            gateway adds it.
          required: false
          schema:
            type: string
            maxLength: 2048
            pattern: ^[\x20-\x7E]*$
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    Conflict:
      description: >-
        Conflict with the current state. Super Admins without an organization
        get `{"code":"ORGANIZATION_REQUIRED"}` on every call except the
        organization-selection ones.
      headers:
        RateLimit:
          description: >-
            Rate-limit state (IETF `RateLimit` header). Added by the edge
            gateway in front of the API when rate limiting is configured there;
            the Node.js application itself does not emit it.
          required: false
          schema:
            type: string
            maxLength: 256
            pattern: ^[\x20-\x7E]*$
        Access-Control-Allow-Origin:
          description: >-
            CORS origin. The API is served same-origin and the Node.js
            application does not emit CORS headers; present only when the edge
            gateway adds it.
          required: false
          schema:
            type: string
            maxLength: 2048
            pattern: ^[\x20-\x7E]*$
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    TooManyRequests:
      description: Rate limit exceeded (application limiter or edge gateway).
      headers:
        RateLimit:
          description: >-
            Rate-limit state (IETF `RateLimit` header). Added by the edge
            gateway in front of the API when rate limiting is configured there;
            the Node.js application itself does not emit it.
          required: false
          schema:
            type: string
            maxLength: 256
            pattern: ^[\x20-\x7E]*$
        Access-Control-Allow-Origin:
          description: >-
            CORS origin. The API is served same-origin and the Node.js
            application does not emit CORS headers; present only when the edge
            gateway adds it.
          required: false
          schema:
            type: string
            maxLength: 2048
            pattern: ^[\x20-\x7E]*$
        Retry-After:
          description: >-
            Seconds to wait before retrying. Sent by the application's own
            limiter (login, OTP, sign-up, captcha, password reset, e-mail
            verification, SSO code exchange) and by the edge gateway.
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
            maximum: 86400
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    ServerError:
      description: Unexpected server error.
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    BadGateway:
      description: The OneFirewall cloud (or an external integration) could not be reached.
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    GatewayTimeout:
      description: >-
        The handler failed after authentication (`Server Error 09`). Also
        returned for routes whose handler is missing (see the operation
        description).
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    ClientError:
      description: Other client error.
      headers:
        RateLimit:
          description: >-
            Rate-limit state (IETF `RateLimit` header). Added by the edge
            gateway in front of the API when rate limiting is configured there;
            the Node.js application itself does not emit it.
          required: false
          schema:
            type: string
            maxLength: 256
            pattern: ^[\x20-\x7E]*$
        Access-Control-Allow-Origin:
          description: >-
            CORS origin. The API is served same-origin and the Node.js
            application does not emit CORS headers; present only when the edge
            gateway adds it.
          required: false
          schema:
            type: string
            maxLength: 2048
            pattern: ^[\x20-\x7E]*$
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/TextMessage'
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT signed (HS256) with a per-user server-side secret; revocable per
        user. Token handling follows RFC8725 (JWT best current practices):
        algorithm pinned by the server, no `none`, claims checked against the
        live user record. See the API description for the compatibility forms
        (Basic, query parameter).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.