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

# Claim a share's key

> The recipient tenant, after its admin accepted, asks for the share's key.
Signed by the recipient; answered once per claim.



## OpenAPI

````yaml post /api/data-shares/claims
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/data-shares/claims:
    post:
      tags:
        - Data shares
      summary: Claim a share's key
      description: >-
        The recipient tenant, after its admin accepted, asks for the share's
        key.

        Signed by the recipient; answered once per claim.
      operationId: claims_api_data_shares_claims_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignedMessage'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClaimResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SignedMessage:
      properties:
        payload:
          additionalProperties: true
          type: object
          title: Payload
        signature:
          type: string
          maxLength: 200
          title: Signature
      type: object
      required:
        - payload
        - signature
      title: SignedMessage
    ClaimResponse:
      properties:
        client_id:
          type: string
          title: Client Id
        client_secret:
          type: string
          title: Client Secret
        endpoint:
          type: string
          title: Endpoint
        token_endpoint:
          type: string
          title: Token Endpoint
        warehouse:
          type: string
          title: Warehouse
        scope:
          type: string
          title: Scope
          default: catalog
      type: object
      required:
        - client_id
        - client_secret
        - endpoint
        - token_endpoint
        - warehouse
      title: ClaimResponse
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A brief description of the error that occurred.
        code:
          type: integer
          title: Code
          description: The HTTP status code associated with the error.
          default: 500
      type: object
      required:
        - error
      title: ErrorResponse

````

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