> ## 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.

# Credential actions (ignore, remediate, etc.)

> Ignores, unignores, remediates or unremediates up to 100 leaked credentials for the tenant the caller acts in. Credentials are designated by the `credential_hash` returned by the credentials search endpoints. `ignore` and `unignore` apply to the identity of the credential (every credential sharing its `identity_name`), while `remediate` and `unremediate` apply to that exact credential. If any hash is unknown, `404 CREDENTIAL_NOT_FOUND` is returned and no action is applied. The response body is `null` on success.

Apply an action to a list of credentials (ignore, remediate, etc.).


## OpenAPI

````yaml firework-v4-openapi post /firework/v4/credentials/actions
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/credentials/actions:
    post:
      tags:
        - Credentials
      summary: Apply an action to credentials
      description: >-
        Ignores, unignores, remediates or unremediates up to 100 leaked
        credentials for the tenant the caller acts in. Credentials are
        designated by the `credential_hash` returned by the credentials search
        endpoints. `ignore` and `unignore` apply to the identity of the
        credential (every credential sharing its `identity_name`), while
        `remediate` and `unremediate` apply to that exact credential. If any
        hash is unknown, `404 CREDENTIAL_NOT_FOUND` is returned and no action is
        applied. The response body is `null` on success.
      operationId: credential_actions_credentials_actions_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CredentialActionRequestBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '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
        '404':
          description: CREDENTIAL_NOT_FOUND
          content:
            application/json:
              schema:
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - CREDENTIAL_NOT_FOUND
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    type: object
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                type: object
                required:
                  - error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CredentialActionRequestBody:
      properties:
        targets:
          items:
            $ref: '#/components/schemas/CredentialActionTarget'
          type: array
          maxItems: 100
          title: Targets
          description: Credentials to apply the action to, at most 100.
        action:
          $ref: '#/components/schemas/CredentialActionBody'
          description: Action applied to every target.
      type: object
      required:
        - targets
        - action
      title: CredentialActionRequestBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CredentialActionTarget:
      properties:
        credential_hash:
          type: string
          title: Credential Hash
          description: >-
            Hash identifying the credential, as returned in the
            `credential_hash` field of credentials search results.
      type: object
      required:
        - credential_hash
      title: CredentialActionTarget
    CredentialActionBody:
      properties:
        type:
          $ref: '#/components/schemas/LeakedCredentialsBulkActionType'
          description: >-
            Action to apply: `ignore` or `remediate` to set the state,
            `unignore` or `unremediate` to clear it.
      type: object
      required:
        - type
      title: CredentialActionBody
    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
    LeakedCredentialsBulkActionType:
      type: string
      enum:
        - remediate
        - unremediate
        - ignore
        - unignore
      title: LeakedCredentialsBulkActionType
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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