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

# Get current partner profile

> Returns the authenticated partner's profile including name, status, environment, branding configuration, and operational settings such as allowed payment methods.



## OpenAPI

````yaml /m2m/openapi.json get /partner/me
openapi: 3.0.0
info:
  title: M2M Partner API
  description: >
    REST API for M2M partner integrations. Create magic links to enable
    cross-border money transfers, manage end users, track transfer operations,
    handle CIP verification, and configure webhooks for real-time event
    notifications.


    ## Authentication


    All endpoints require an API key passed in the `X-API-Key` header. Use
    `m2m_test_*` keys for the sandbox environment.


    ## Environments


    | Environment | Base URL |

    |---|---|

    | Sandbox | `https://m2m-backend-qa.up.railway.app` |
  version: 0.5.3
  contact: {}
servers:
  - url: https://m2m-backend-qa.up.railway.app
    description: Sandbox
security: []
tags:
  - name: Partner - Magic Links
    description: Create, list, and manage magic links for money transfers
  - name: Partner - Users
    description: View and manage end users associated with your partner account
  - name: Partner - Operations
    description: Track money transfer operations and their statuses
  - name: Partner - CIP
    description: Customer Identification Program (CIP) verification management
  - name: Partner - Data Requests
    description: Fulfill data requests for additional user information
  - name: Partner - Settings
    description: Configure partner-level settings (redirect URLs, etc.)
  - name: Partner - Webhooks
    description: Configure webhook endpoints and inspect delivery history
paths:
  /partner/me:
    get:
      tags:
        - Partner - Magic Links
      summary: Get current partner profile
      description: >-
        Returns the authenticated partner's profile including name, status,
        environment, branding configuration, and operational settings such as
        allowed payment methods.
      operationId: LinksController_getProfile
      parameters: []
      responses:
        '200':
          description: Partner profile retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerProfileResponseDto'
        '401':
          description: Unauthorized — invalid or missing API key / bearer token
      security:
        - bearer: []
        - api-key: []
components:
  schemas:
    PartnerProfileResponseDto:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/PartnerProfileDataDto'
      required:
        - success
        - data
    PartnerProfileDataDto:
      type: object
      properties:
        partnerId:
          type: string
          description: Unique partner identifier
          example: partner_acme_a1b2c3
        name:
          type: string
          description: Partner display name
          example: Acme Corp
        status:
          type: string
          description: Partner status
          example: active
          enum:
            - active
            - suspended
            - inactive
        environment:
          type: string
          description: Current environment
          example: sandbox
          enum:
            - sandbox
            - production
        logoUrl:
          type: string
          description: Partner logo URL
          example: https://cdn.example.com/logo.png
        primaryColor:
          type: string
          description: Primary brand color (hex)
          example: '#1a73e8'
        theme:
          type: string
          description: JSON theme configuration for the widget
        config:
          description: Partner configuration summary
          allOf:
            - $ref: '#/components/schemas/PartnerConfigSummaryDto'
      required:
        - partnerId
        - name
        - status
        - environment
        - config
    PartnerConfigSummaryDto:
      type: object
      properties:
        linkExpirationMinutes:
          type: number
          description: Default link TTL in minutes
          example: 60
        allowedFundingMethods:
          description: Allowed funding methods for this partner
          example:
            - card
            - account
          type: array
          items:
            type: string
        allowedPayoutMethods:
          description: Allowed payout methods for this partner
          example:
            - bank_account
          type: array
          items:
            type: string
      required:
        - linkExpirationMinutes
        - allowedFundingMethods
        - allowedPayoutMethods
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your partner API key. Use `m2m_test_*` keys for the sandbox environment.

````