> ## Documentation Index
> Fetch the complete documentation index at: https://scaleup-c34c4386.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /api/v1/organizations/me

> Retorna a organização associada ao Supabase JWT utilizado

Retorna os dados da organização vinculada ao Supabase JWT presente no header de autenticação.

## Autenticação

Requer **Supabase JWT** via header `Authorization: Bearer`.

## Resposta

Retorna o objeto completo da organização associada ao token.

**id** `string`

ID único da organização

**name** `string`

Nome da organização

**slug** `string`

Slug único para URL

**avatar\_url** `string`

URL do avatar

**status** `string`

Status: `created`, `active`, `denied`

**subscription\_settings** `object`

Configurações de assinaturas

**notification\_settings** `object`

Configurações de notificações

**created\_at** `string`

Data de criação (ISO 8601)

## Erros

| Código | Descrição |
| - | - |
| `403` | O token fornecido não é válido ou não possui permissões |

## Exemplo

```bash cURL theme={null}
curl -X GET "https://api.chargefy.io/api/v1/organizations/me" \
  -H "Authorization: Bearer <supabase_jwt>"
```

```typescript SDK theme={null}
import { Chargefy } from '@chargefy/sdk';

const chargefy = new Chargefy({
  accessToken: process.env.CHARGEFY_ACCESS_TOKEN,
});

const org = await chargefy.organizations.me();
```

## Resposta de Exemplo

```json theme={null}
{
  "id": "org_abc123",
  "name": "Minha Empresa",
  "slug": "minha-empresa",
  "avatar_url": "https://cdn.chargefy.io/avatars/org_abc123.png",
  "status": "active",
  "subscription_settings": {
    "allow_multiple_subscriptions": false,
    "allow_customer_updates": true,
    "proration_behavior": "prorate"
  },
  "notification_settings": {
    "new_sale": true,
    "new_subscription": true
  },
  "created_at": "2025-06-01T08:00:00Z"
}
```


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