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

# Get Profile by RFC

> Get profile details by RFC (Mexican tax ID)

## Overview

Retrieve profile details using the RFC (Registro Federal de Contribuyentes) identifier.

## Path Parameters

<ParamField path="rfc" type="string" required>
  The RFC (Mexican tax ID) of the profile to retrieve. Example: `XAXX010101000`
</ParamField>

## Response

<ResponseField name="id" type="string">
  Unique profile identifier (UUID)
</ResponseField>

<ResponseField name="name" type="string">
  Profile name
</ResponseField>

<ResponseField name="email" type="string">
  Email address
</ResponseField>

<ResponseField name="phone_number" type="string">
  Phone number
</ResponseField>

<ResponseField name="org_id" type="string">
  Organization ID the profile belongs to
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 timestamp of when the profile was created
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 timestamp of when the profile was last updated
</ResponseField>

<ResponseField name="is_admin" type="boolean">
  Whether the profile has admin privileges
</ResponseField>

<ResponseField name="credits_remaining" type="number">
  Number of invoice credits remaining
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://app.usatimbre.com/api/profile/XAXX010101000" \
    -H "Authorization: Bearer tmb_your_api_key_here"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://app.usatimbre.com/api/profile/XAXX010101000', {
    headers: {
      'Authorization': 'Bearer tmb_your_api_key_here'
    }
  });
  const profile = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://app.usatimbre.com/api/profile/XAXX010101000',
      headers={'Authorization': 'Bearer tmb_your_api_key_here'}
  )
  profile = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Juan Pérez",
    "email": "juan@example.com",
    "phone_number": "+525512345678",
    "org_id": "org_123456",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-20T14:45:00Z",
    "is_admin": false,
    "credits_remaining": 50
  }
  ```

  ```json 404 theme={null}
  {
    "error": "Not Found",
    "message": "Profile not found"
  }
  ```
</ResponseExample>
