# currentUser

```graphql
query CurrentUser {
  currentUser {
    id
    email
    name
    avatarSrc
    oAuth {
      github
      google
      linkedIn
      slack
    }
    approved
    subscription {
      id
      type
      cycle
      status
      currentPeriodStart
      currentPeriodEnd
      quantity
      expiresAt
      createdAt
      canceledAt
      projectId
    }
    projectRole {
      name
      permissions
    }
  }
}
```

Return the profile of the signed-in user; GraphQL and MCP also return the profile of the user who owns an API key.

## Responses

| Status | Description                   |
| ------ | ----------------------------- |
| 200    | The User in data.currentUser. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query CurrentUser {\n  currentUser {\n    id\n    email\n    name\n    avatarSrc\n    oAuth {\n      github\n      google\n      linkedIn\n      slack\n    }\n    approved\n    subscription {\n      id\n      type\n      cycle\n      status\n      currentPeriodStart\n      currentPeriodEnd\n      quantity\n      expiresAt\n      createdAt\n      canceledAt\n      projectId\n    }\n    projectRole {\n      name\n      permissions\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "currentUser": {
      "id": "string",
      "email": "user@example.com",
      "name": "string",
      "avatarSrc": "string",
      "oAuth": {
        "github": "string",
        "google": "string",
        "linkedIn": "string",
        "slack": "string"
      },
      "approved": false,
      "subscription": {
        "id": "string",
        "type": "free",
        "cycle": "monthly",
        "status": "string",
        "currentPeriodStart": "string",
        "currentPeriodEnd": "string",
        "quantity": 0,
        "expiresAt": "string",
        "createdAt": "string",
        "canceledAt": "string",
        "projectId": "string"
      },
      "projectRole": {
        "name": "string",
        "permissions": [
          "string"
        ]
      }
    }
  }
}
```
