# projectMember

```graphql
query ProjectMember($projectReference: ID!, $userId: ID!) {
  projectMember(projectReference: $projectReference, userId: $userId) {
    userId
    email
    name
    avatarSrc
    role
    source
    capabilities
    budget {
      monthlyLimitUsd
      monthlyLimitCredits
    }
    budgetStatus {
      used
      remaining
      resetsAt
    }
  }
}
```

Returns one member of the project with role, capabilities and the read-only AI budget projection. Requires project.members.read.

## Arguments

| Name               | Type | Required | Description                                                          |
| ------------------ | ---- | -------- | -------------------------------------------------------------------- |
| `projectReference` | ID!  | Yes      | Project UUID, slug or domain. An inaccessible project is not\_found. |
| `userId`           | ID!  | Yes      | User ID of the member. A user who is not a member is not\_found.     |

## Variables

```json
{
  "projectReference": "string",
  "userId": "string"
}
```

## Responses

| Status | Description                                     |
| ------ | ----------------------------------------------- |
| 200    | The ProjectMemberDetail! in data.projectMember. |

## 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 ProjectMember($projectReference: ID!, $userId: ID!) {\n  projectMember(projectReference: $projectReference, userId: $userId) {\n    userId\n    email\n    name\n    avatarSrc\n    role\n    source\n    capabilities\n    budget {\n      monthlyLimitUsd\n      monthlyLimitCredits\n    }\n    budgetStatus {\n      used\n      remaining\n      resetsAt\n    }\n  }\n}",
  "variables": {
    "projectReference": "string",
    "userId": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "projectMember": {
      "userId": "string",
      "email": "user@example.com",
      "name": "string",
      "avatarSrc": "string",
      "role": "owner",
      "source": "project",
      "capabilities": [
        "string"
      ],
      "budget": {
        "monthlyLimitUsd": 0,
        "monthlyLimitCredits": 0
      },
      "budgetStatus": {
        "used": 0,
        "remaining": 0,
        "resetsAt": "string"
      }
    }
  }
}
```
