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

# Upload EFAST credentials

> Uploads EFAST credentials for a client to the CX26 API via gRPC.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /compliance/{client}/{plan}/_new_efast_creds
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /compliance/{client}/{plan}/_new_efast_creds:
    post:
      tags:
        - compliance
      summary: Upload EFAST credentials
      description: Uploads EFAST credentials for a client to the CX26 API via gRPC.
      parameters:
        - description: Client ID
          name: client
          in: path
          required: true
          schema:
            type: string
        - description: Plan ID
          name: plan
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_compliance.UploadEfastCredsRequest
        description: EFAST credentials (task_id, type, user_id, pin, signed_name)
        required: true
      responses:
        '200':
          description: Upload success message
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_compliance.UploadEfastCredsResponse
        '400':
          description: Bad request - invalid request body or credential type
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '422':
          description: >-
            Credentials refused - the signer can fix them: a signed name or PIN
            format the credentials service rejects, or a Signer ID and PIN
            EFAST2 did not accept
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error while saving the credentials
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '503':
          description: >-
            The credentials service or EFAST2 could not be reached; nothing was
            checked
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_compliance.UploadEfastCredsRequest:
      type: object
      properties:
        pin:
          type: string
        signed_name:
          type: string
        task_id:
          type: string
        type:
          type: string
        user_id:
          type: string
    pkg_routes_compliance.UploadEfastCredsResponse:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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