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

# Finalize Manual Auth

> Finalize authentication using manual credentials.

This endpoint is used for connectors that require manual credential input
(like Zotero) instead of OAuth flows.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ee/connectors/{connector_type}/auth/finalize
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /ee/connectors/{connector_type}/auth/finalize:
    post:
      tags:
        - EE - Connectors
      summary: Finalize Manual Auth
      description: >-
        Finalize authentication using manual credentials.


        This endpoint is used for connectors that require manual credential
        input

        (like Zotero) instead of OAuth flows.
      operationId: finalize_manual_auth_ee_connectors__connector_type__auth_finalize_post
      parameters:
        - name: connector_type
          in: path
          required: true
          schema:
            type: string
            title: Connector Type
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManualCredentialsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Finalize Manual Auth Ee Connectors  Connector Type 
                  Auth Finalize Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Morphik from 'morphik';


            const client = new Morphik({
              apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
            });


            const response = await
            client.ee.connectors.auth.finalizeManualAuth('connector_type', {
              credentials: { foo: 'bar' },
            });


            console.log(response);
        - lang: cURL
          source: >-
            curl
            https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/auth/finalize \
                -H 'Content-Type: application/json' \
                -H "Authorization: Bearer $MORPHIK_API_KEY" \
                -d '{
                      "credentials": {
                        "foo": "bar"
                      }
                    }'
components:
  schemas:
    ManualCredentialsRequest:
      properties:
        credentials:
          additionalProperties: true
          type: object
          title: Credentials
      type: object
      required:
        - credentials
      title: ManualCredentialsRequest
      description: Request model for manual credential submission.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````