Fuente: https://crm.begraffic.com/docs/api
Índice para agentes: [llms.txt](https://crm.begraffic.com/llms.txt)

# GET /api/v1/me

URL base: https://crm.begraffic.com. Autenticación: Authorization: Bearer <CLAVE_V1_bcrm_...>.

Definición OpenAPI de la operación (los bloques schema son esquemas, no cuerpos de ejemplo):

```json
{
  "operationId": "me.get",
  "summary": "Comprobar la clave",
  "description": "Devuelve la clave (sin secreto), el workspace y el estado de correo, SMS, WhatsApp y Telegram, con disponibilidad del plan, permisos y enlaces de configuración. Vale con cualquier alcance. Es una foto de la configuración guardada, sin consultar proveedores ni garantizar entrega.",
  "tags": [
    "Clave"
  ],
  "x-scope": "any",
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "parameters": [],
  "responses": {
    "200": {
      "description": "Correcto.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "integrations": {
                    "type": "object",
                    "properties": {
                      "checkedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "source": {
                        "type": "string",
                        "const": "crm_configuration"
                      },
                      "email": {
                        "type": "object",
                        "properties": {
                          "available": {
                            "type": "boolean",
                            "description": "El plan incluye este canal."
                          },
                          "configured": {
                            "type": "boolean",
                            "description": "Hay configuración utilizable guardada en BeCRM."
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Configurado y disponible en el plan; no garantiza entrega del proveedor."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "not_configured",
                              "configuration_pending",
                              "plan_required"
                            ]
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "canReceive": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "null indica recepción sin confirmar."
                          },
                          "apiCanSend": {
                            "type": "boolean",
                            "description": "Canal activo y permiso de envío autorizado; cuotas y proveedor se validan al enviar."
                          },
                          "configurationUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "verified": {
                            "type": "boolean"
                          },
                          "identitiesCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "verifiedSendersCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "verifiedDomainsCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "available",
                          "configured",
                          "active",
                          "status",
                          "reason",
                          "canReceive",
                          "apiCanSend",
                          "configurationUrl",
                          "verified",
                          "identitiesCount",
                          "verifiedSendersCount",
                          "verifiedDomainsCount"
                        ]
                      },
                      "sms": {
                        "type": "object",
                        "properties": {
                          "available": {
                            "type": "boolean",
                            "description": "El plan incluye este canal."
                          },
                          "configured": {
                            "type": "boolean",
                            "description": "Hay configuración utilizable guardada en BeCRM."
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Configurado y disponible en el plan; no garantiza entrega del proveedor."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "not_configured",
                              "configuration_pending",
                              "plan_required"
                            ]
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "canReceive": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "null indica recepción sin confirmar."
                          },
                          "apiCanSend": {
                            "type": "boolean",
                            "description": "Canal activo y permiso de envío autorizado; cuotas y proveedor se validan al enviar."
                          },
                          "configurationUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "numbersCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "activeNumbersCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "available",
                          "configured",
                          "active",
                          "status",
                          "reason",
                          "canReceive",
                          "apiCanSend",
                          "configurationUrl",
                          "numbersCount",
                          "activeNumbersCount"
                        ]
                      },
                      "whatsapp": {
                        "type": "object",
                        "properties": {
                          "available": {
                            "type": "boolean",
                            "description": "El plan incluye este canal."
                          },
                          "configured": {
                            "type": "boolean",
                            "description": "Hay configuración utilizable guardada en BeCRM."
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Configurado y disponible en el plan; no garantiza entrega del proveedor."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "not_configured",
                              "configuration_pending",
                              "plan_required"
                            ]
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "canReceive": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "null indica recepción sin confirmar."
                          },
                          "apiCanSend": {
                            "type": "boolean",
                            "description": "Canal activo y permiso de envío autorizado; cuotas y proveedor se validan al enviar."
                          },
                          "configurationUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "accountsCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "numbersCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "activeNumbersCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "available",
                          "configured",
                          "active",
                          "status",
                          "reason",
                          "canReceive",
                          "apiCanSend",
                          "configurationUrl",
                          "accountsCount",
                          "numbersCount",
                          "activeNumbersCount"
                        ]
                      },
                      "telegram": {
                        "type": "object",
                        "properties": {
                          "available": {
                            "type": "boolean",
                            "description": "El plan incluye este canal."
                          },
                          "configured": {
                            "type": "boolean",
                            "description": "Hay configuración utilizable guardada en BeCRM."
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Configurado y disponible en el plan; no garantiza entrega del proveedor."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "not_configured",
                              "configuration_pending",
                              "plan_required"
                            ]
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "canReceive": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "null indica recepción sin confirmar."
                          },
                          "apiCanSend": {
                            "type": "boolean",
                            "description": "Canal activo y permiso de envío autorizado; cuotas y proveedor se validan al enviar."
                          },
                          "configurationUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "botConnected": {
                            "type": "boolean"
                          },
                          "webhookRegistered": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "available",
                          "configured",
                          "active",
                          "status",
                          "reason",
                          "canReceive",
                          "apiCanSend",
                          "configurationUrl",
                          "botConnected",
                          "webhookRegistered"
                        ]
                      }
                    },
                    "required": [
                      "checkedAt",
                      "source",
                      "email",
                      "sms",
                      "whatsapp",
                      "telegram"
                    ]
                  },
                  "key": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "prefix": {
                        "type": "string"
                      },
                      "scopes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "expiresAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "rateLimitPerMinute": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "prefix",
                      "scopes",
                      "expiresAt",
                      "createdAt",
                      "rateLimitPerMinute"
                    ]
                  },
                  "workspace": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "plan": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "plan"
                    ]
                  }
                },
                "required": [
                  "integrations",
                  "key",
                  "workspace"
                ]
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "`invalid_request`: Petición inválida (cuerpo, parámetros o consulta).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "401": {
      "description": "`unauthorized`: Falta la clave, no existe, está revocada o caducó.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "`insufficient_scope`: La clave no tiene el alcance que exige la ruta.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "`rate_limited`: Demasiadas llamadas (límite por clave y minuto). Ver `Retry-After`.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "`internal`: Error interno.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}
```
