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

# Create Identifier

> Create an identifier, an asset such as a domain, a keyword or an identity that is monitored for matching events, in the tenant the caller is acting in, and return it. Requires write access to the tenant's identifiers.

Notable error codes:
- `IDENTIFIER_NOT_ALLOWED` (400): the value is restricted and cannot be monitored by this account.
- `DUPLICATE_EMAIL_FOUND` (400): an email of the identity is already monitored by another identity of the tenant.
- `IDENTIFIERS_LIMIT_REACHED`, `TENANT_IDENTIFIERS_LIMIT_REACHED` (403): the identifier limit of the organization or of the tenant would be exceeded; an IP range counts once per address.
- `IDENTIFIER_ROTATION_LIMIT_REACHED` (403): the identifier rotation limit is reached.
- `ORG_CANNOT_MONITOR_ADS`, `SEARCHING_ADS_NOT_ALLOWED`, `ORG_CANNOT_USE_SEARCH_QUERIES`, `ORG_CANNOT_USE_REGEX_SEARCH_QUERIES`, `SEARCH_TYPES_NOT_ALLOWED` (403): the account is not allowed to use the requested categories, search query identifiers or regular expressions in search queries; the ad category cannot be used on a search query identifier.
- `RESTRICTED_FIELD` (403): the search query uses fields the caller is not allowed to query.
- `TENANT_DISABLED` (403): the tenant is disabled.

&#x20;Required API key permission: **Write Tenant**


## OpenAPI

````yaml firework-v4-openapi post /firework/v4/identifiers/
openapi: 3.1.0
info:
  title: Firework API
  version: v4
servers:
  - url: https://api.flare.io
security:
  - BearerAuth: []
tags:
  - name: Audit Logs
    description: Audit trail of actions performed in the platform.
  - name: Credentials
    description: >-
      Leaked credentials: search across all sources or within a tenant, and
      remediate or ignore them.
  - name: Entities
    description: >-
      Threat intelligence entities such as actors, chat channels, forum threads
      and domains, and the relations between them.
  - name: Events
    description: >-
      Events collected by Flare: global search, tenant and identifier feeds,
      event details, actions and saved feed views.
  - name: Identifiers
    description: >-
      Identifiers are the assets a tenant monitors, such as domains, keywords
      and email addresses. Includes recommendations and authorization of
      sensitive identifiers.
  - name: Matching Policies
    description: >-
      Matching policies refine which events match identifiers. Manage policies
      and their assignment to identifiers.
  - name: Sandbox
    description: File uploads and their sandbox analysis.
  - name: Threat Flow
    description: >-
      Threat Flow intelligence requests, generated reports and conversation
      summaries.
paths:
  /firework/v4/identifiers/:
    post:
      tags:
        - Identifiers
      summary: Create an identifier
      description: >-
        Create an identifier, an asset such as a domain, a keyword or an
        identity that is monitored for matching events, in the tenant the caller
        is acting in, and return it. Requires write access to the tenant's
        identifiers.


        Notable error codes:

        - `IDENTIFIER_NOT_ALLOWED` (400): the value is restricted and cannot be
        monitored by this account.

        - `DUPLICATE_EMAIL_FOUND` (400): an email of the identity is already
        monitored by another identity of the tenant.

        - `IDENTIFIERS_LIMIT_REACHED`, `TENANT_IDENTIFIERS_LIMIT_REACHED` (403):
        the identifier limit of the organization or of the tenant would be
        exceeded; an IP range counts once per address.

        - `IDENTIFIER_ROTATION_LIMIT_REACHED` (403): the identifier rotation
        limit is reached.

        - `ORG_CANNOT_MONITOR_ADS`, `SEARCHING_ADS_NOT_ALLOWED`,
        `ORG_CANNOT_USE_SEARCH_QUERIES`, `ORG_CANNOT_USE_REGEX_SEARCH_QUERIES`,
        `SEARCH_TYPES_NOT_ALLOWED` (403): the account is not allowed to use the
        requested categories, search query identifiers or regular expressions in
        search queries; the ad category cannot be used on a search query
        identifier.

        - `RESTRICTED_FIELD` (403): the search query uses fields the caller is
        not allowed to query.

        - `TENANT_DISABLED` (403): the tenant is disabled.
      operationId: create_public_identifier_identifiers__post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicIdentifierRequestBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicIdentifierResponse'
        '400':
          description: >-
            DUPLICATE_EMAIL_FOUND, IDENTIFIER_NOT_ALLOWED,
            INCOMPATIBLE_IDENTIFIER_TYPE, MATCHING_POLICY_NOT_FOUND,
            TOO_MANY_MATCHING_POLICIES
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - DUPLICATE_EMAIL_FOUND
                          - IDENTIFIER_NOT_ALLOWED
                          - INCOMPATIBLE_IDENTIFIER_TYPE
                          - MATCHING_POLICY_NOT_FOUND
                          - TOO_MANY_MATCHING_POLICIES
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '401':
          description: UNAUTHORIZED
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - UNAUTHORIZED
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '403':
          description: >-
            FORBIDDEN, IDENTIFIERS_LIMIT_REACHED,
            IDENTIFIER_ROTATION_LIMIT_REACHED, ORG_CANNOT_MONITOR_ADS,
            ORG_CANNOT_USE_REGEX_SEARCH_QUERIES, ORG_CANNOT_USE_SEARCH_QUERIES,
            RESTRICTED_FIELD, SEARCHING_ADS_NOT_ALLOWED,
            SEARCH_TYPES_NOT_ALLOWED, TENANT_DISABLED,
            TENANT_IDENTIFIERS_LIMIT_REACHED
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - FORBIDDEN
                          - IDENTIFIERS_LIMIT_REACHED
                          - IDENTIFIER_ROTATION_LIMIT_REACHED
                          - ORG_CANNOT_MONITOR_ADS
                          - ORG_CANNOT_USE_REGEX_SEARCH_QUERIES
                          - ORG_CANNOT_USE_SEARCH_QUERIES
                          - RESTRICTED_FIELD
                          - SEARCHING_ADS_NOT_ALLOWED
                          - SEARCH_TYPES_NOT_ALLOWED
                          - TENANT_DISABLED
                          - TENANT_IDENTIFIERS_LIMIT_REACHED
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '404':
          description: IDENTIFIER_NOT_FOUND, NOT_FOUND
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - IDENTIFIER_NOT_FOUND
                          - NOT_FOUND
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '409':
          description: FAILED_TO_CREATE_IDENTIFIER, IDENTIFIER_ALREADY_EXISTS
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - FAILED_TO_CREATE_IDENTIFIER
                          - IDENTIFIER_ALREADY_EXISTS
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PublicIdentifierRequestBody:
      properties:
        data:
          oneOf:
            - $ref: '#/components/schemas/CCBinData'
            - $ref: '#/components/schemas/IPData'
            - $ref: '#/components/schemas/KeywordData'
            - $ref: '#/components/schemas/AzureTenantData'
            - $ref: '#/components/schemas/DomainData'
            - $ref: '#/components/schemas/SearchQueryData'
            - $ref: '#/components/schemas/GithubRepositoryData'
            - $ref: '#/components/schemas/SecretData'
            - $ref: '#/components/schemas/PublicIdentityData'
          title: Data
          description: >-
            The asset to monitor; `type` selects the kind of identifier and
            determines the other fields of the object.
          discriminator:
            propertyName: type
            mapping:
              azure_tenant: '#/components/schemas/AzureTenantData'
              bin: '#/components/schemas/CCBinData'
              domain: '#/components/schemas/DomainData'
              github_repository: '#/components/schemas/GithubRepositoryData'
              identity: '#/components/schemas/PublicIdentityData'
              ip: '#/components/schemas/IPData'
              keyword: '#/components/schemas/KeywordData'
              search_query: '#/components/schemas/SearchQueryData'
              secret: '#/components/schemas/SecretData'
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: >-
            Display name of the identifier; when omitted on creation, a name is
            derived from `data`.
        categories:
          items:
            $ref: '#/components/schemas/SearchType'
          type: array
          minItems: 1
          title: Categories
          description: Event categories the identifier monitors.
        emerging_categories:
          items:
            type: string
          type: array
          title: Emerging Categories
          description: >-
            Names of the emerging (experimental) event categories the identifier
            monitors; send an empty list for none.
        severities:
          items:
            $ref: '#/components/schemas/Severity'
          type: array
          minItems: 1
          title: Severities
          description: Event severities the identifier monitors.
        group_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Group Id
          description: >-
            ID of the identifier group the identifier belongs to; `null` or
            omitted means no group.
      type: object
      required:
        - data
        - categories
        - emerging_categories
        - severities
      title: PublicIdentifierRequestBody
    PublicIdentifierResponse:
      properties:
        id:
          type: integer
          title: Id
          description: Unique ID of the identifier.
        name:
          type: string
          title: Name
          description: Display name of the identifier.
        tenant_id:
          type: integer
          title: Tenant Id
          description: ID of the tenant the identifier belongs to.
        data:
          oneOf:
            - $ref: '#/components/schemas/CCBinData'
            - $ref: '#/components/schemas/IPData'
            - $ref: '#/components/schemas/KeywordData'
            - $ref: '#/components/schemas/AzureTenantData'
            - $ref: '#/components/schemas/DomainData'
            - $ref: '#/components/schemas/SearchQueryData'
            - $ref: '#/components/schemas/GithubRepositoryData'
            - $ref: '#/components/schemas/SecretData'
            - $ref: '#/components/schemas/PublicIdentityData'
          title: Data
          description: >-
            The monitored asset; `type` gives the kind of identifier and
            determines the other fields of the object.
          discriminator:
            propertyName: type
            mapping:
              azure_tenant: '#/components/schemas/AzureTenantData'
              bin: '#/components/schemas/CCBinData'
              domain: '#/components/schemas/DomainData'
              github_repository: '#/components/schemas/GithubRepositoryData'
              identity: '#/components/schemas/PublicIdentityData'
              ip: '#/components/schemas/IPData'
              keyword: '#/components/schemas/KeywordData'
              search_query: '#/components/schemas/SearchQueryData'
              secret: '#/components/schemas/SecretData'
        categories:
          items:
            $ref: '#/components/schemas/SearchType'
          type: array
          title: Categories
          description: Event categories the identifier monitors.
        emerging_categories:
          items:
            type: string
          type: array
          title: Emerging Categories
          description: >-
            Names of the emerging (experimental) event categories the identifier
            monitors.
        severities:
          items:
            $ref: '#/components/schemas/Severity'
          type: array
          title: Severities
          description: Event severities the identifier monitors.
        group_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Group Id
          description: >-
            ID of the identifier group the identifier belongs to, or `null` when
            it is in no group.
        enrichments:
          anyOf:
            - $ref: '#/components/schemas/IdentifierEnrichments'
            - type: 'null'
          description: Computed information about the identifier.
        is_disabled:
          type: boolean
          title: Is Disabled
          description: Whether the identifier is disabled.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Date and time the identifier's data was last updated.
      type: object
      required:
        - id
        - name
        - tenant_id
        - data
        - categories
        - emerging_categories
        - severities
        - group_id
        - enrichments
        - is_disabled
        - updated_at
      title: IdentifierResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CCBinData:
      properties:
        type:
          type: string
          const: bin
          title: Type
          default: bin
        bin:
          type: string
          minLength: 1
          title: Bin
          description: Bank identification number, digits only.
      type: object
      required:
        - bin
      title: CCBinData
    IPData:
      properties:
        type:
          type: string
          const: ip
          title: Type
          default: ip
        ip:
          type: string
          minLength: 1
          title: Ip
          description: IPv4 address or network in dot-decimal notation.
      type: object
      required:
        - ip
      title: IPData
    KeywordData:
      properties:
        type:
          type: string
          const: keyword
          title: Type
          default: keyword
        keyword:
          type: string
          minLength: 1
          title: Keyword
          description: Keyword to monitor, not surrounded by quotes.
      type: object
      required:
        - keyword
      title: KeywordData
    AzureTenantData:
      properties:
        type:
          type: string
          const: azure_tenant
          title: Type
          default: azure_tenant
        tenant_id:
          type: string
          minLength: 1
          title: Tenant Id
          description: UUID of the Azure tenant.
      type: object
      required:
        - tenant_id
      title: AzureTenantData
    DomainData:
      properties:
        type:
          type: string
          const: domain
          title: Type
          default: domain
        fqdn:
          type: string
          minLength: 1
          title: Fqdn
          description: >-
            Domain name to monitor. When a URL is sent, its domain name is
            extracted.
      type: object
      required:
        - fqdn
      title: DomainData
    SearchQueryData:
      properties:
        type:
          type: string
          const: search_query
          title: Type
          default: search_query
        search_query:
          type: string
          minLength: 1
          title: Search Query
          description: Search query whose matching events are monitored.
      type: object
      required:
        - search_query
      title: SearchQueryData
    GithubRepositoryData:
      properties:
        type:
          type: string
          const: github_repository
          title: Type
          default: github_repository
        repo_name:
          type: string
          minLength: 1
          title: Repo Name
          description: Name of the GitHub repository.
        repo_owner:
          type: string
          minLength: 1
          title: Repo Owner
          description: User or organization owning the GitHub repository.
      type: object
      required:
        - repo_name
        - repo_owner
      title: GithubRepositoryData
    SecretData:
      properties:
        type:
          type: string
          const: secret
          title: Type
          default: secret
        secret:
          type: string
          minLength: 1
          title: Secret
          description: >-
            Secret to monitor. It is stored and returned as its BLAKE2b
            hexadecimal hash; a value that is already such a hash is kept as is.
      type: object
      required:
        - secret
      title: SecretData
    PublicIdentityData:
      properties:
        type:
          type: string
          const: identity
          title: Type
          default: identity
        attributes:
          items:
            oneOf:
              - $ref: '#/components/schemas/EmailData'
              - $ref: '#/components/schemas/UsernameData'
              - $ref: '#/components/schemas/NameData'
            discriminator:
              propertyName: type
              mapping:
                email: '#/components/schemas/EmailData'
                name: '#/components/schemas/NameData'
                username: '#/components/schemas/UsernameData'
          type: array
          maxItems: 15
          minItems: 1
          title: Attributes
          description: Emails, usernames and names identifying the person.
      type: object
      required:
        - attributes
      title: IdentityData
    SearchType:
      type: string
      enum:
        - attachment
        - listing
        - ransomleak
        - forum_post
        - forum_topic
        - forum_profile
        - blog_post
        - seller
        - paste
        - leak
        - chat_message
        - domain
        - bot
        - stealer_log
        - infected_devices
        - driller
        - driller_forum_topic
        - driller_forum_post
        - driller_profile
        - cc
        - ccbin
        - financial_data
        - leaked_data
        - leaked_file
        - document
        - account
        - actor
        - forum_content
        - blog_content
        - profile
        - leaked_credential
        - valid_credential
        - invalid_credential
        - mitigated_credential
        - illicit_networks
        - open_web
        - domains
        - intelligence_object
        - leaks
        - social_media_account
        - social_media
        - source_code
        - source_code_secrets_np
        - source_code_secrets
        - source_code_files
        - secret
        - docker
        - stack_exchange
        - google
        - service
        - driller_host
        - buckets
        - bucket
        - bucket_object
        - whois
        - ad
        - ads
        - cookie
        - pii
        - experimental
        - lookalike_discovery
        - lookalike_title
        - lookalike_favicon
        - lookalike_screenshot
        - lookalike_ip_address
        - lookalike_dns
        - lookalike_whois_rdap
        - lookalike_ssl_certificate
      title: SearchType
    Severity:
      type: string
      enum:
        - info
        - low
        - medium
        - high
        - critical
      title: Severity
    IdentifierEnrichments:
      properties:
        domain_reachable_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Domain Reachable At
          description: >-
            Date and time the domain was last reachable; `null` when it was
            never reachable or when the identifier is not a domain.
        domain_resolves_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Domain Resolves At
          description: >-
            Date and time the domain's `resolves` status was last updated;
            `null` when unavailable or when the identifier is not a domain.
        usage_count:
          type: integer
          title: Usage Count
          description: >-
            Number of identifiers this identifier counts for against the
            identifier limit; an IP range counts once per address.
        event_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Event Count
          description: >-
            Number of events matched by the identifier; populated when listing
            identifiers and `null` when it was not computed.
        authorization_status:
          anyOf:
            - $ref: '#/components/schemas/IdentifierAuthorizationStatus'
            - type: 'null'
          description: >-
            Authorization status of the identifier: `authorized`, or `pending`
            or `rejected` according to its authorization request; `null` when
            none applies.
          examples:
            - authorized
            - pending
            - rejected
      type: object
      required:
        - domain_reachable_at
        - domain_resolves_at
        - usage_count
        - event_count
        - authorization_status
      title: IdentifierEnrichments
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    EmailData:
      properties:
        type:
          type: string
          const: email
          title: Type
          default: email
        email:
          type: string
          format: email
          title: Email
          description: Email address to monitor.
      type: object
      required:
        - email
      title: EmailData
    UsernameData:
      properties:
        type:
          type: string
          const: username
          title: Type
          default: username
        username:
          type: string
          minLength: 1
          title: Username
          description: Username to monitor.
      type: object
      required:
        - username
      title: UsernameData
    NameData:
      properties:
        type:
          type: string
          const: name
          title: Type
          default: name
        first_name:
          type: string
          title: First Name
          description: First name. Can be empty when `last_name` is set.
        last_name:
          type: string
          title: Last Name
          description: Last name. Can be empty when `first_name` is set.
        is_strict:
          type: boolean
          title: Is Strict
      type: object
      required:
        - first_name
        - last_name
        - is_strict
      title: NameData
    IdentifierAuthorizationStatus:
      type: string
      enum:
        - pending
        - rejected
        - authorized
      title: IdentifierAuthorizationStatus
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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