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

# Account resource

> Reference for client.account.

Access these methods through `client.account`.

## `client.account.identity`

Show the organization and user your requests act as, and which kind of credential they use.

```python Signature theme={null}
async def identity() -> IdentityResponse
```

**Returns**

[`IdentityResponse`](https://docs.valkyrie.vals.ai/reference/sdk/models/account#identity-response)

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).

## `client.account.create_access_key`

Create an access key for the current organization that expires after 1 to 90 days.

The returned `key` is shown only once. Needs a login, not an access key.

```python Signature theme={null}
async def create_access_key(
    name: str,
    *,
    expires_in_days: int = 30,
) -> AccessKeyResponse
```

**Parameters**

namerequired · str

expires\_in\_daysoptional · int · default: `30`

**Returns**

[`AccessKeyResponse`](https://docs.valkyrie.vals.ai/reference/sdk/models/account#access-key-response)

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).

## `client.account.revoke_access_key`

Delete an access key you created; Tracker may accept it for up to one more hour.

```python Signature theme={null}
async def revoke_access_key(key_id: str) -> None
```

**Parameters**

key\_idrequired · str

**Returns**

None

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).

## `client.account.organizations`

List the organizations your login belongs to and the ones that invited it.

```python Signature theme={null}
async def organizations() -> OrganizationsResponse
```

**Returns**

[`OrganizationsResponse`](https://docs.valkyrie.vals.ai/reference/sdk/models/account#organizations-response)

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).

## `client.account.create_organization`

Create an organization with this ID and make yourself its admin.

The ID is 3 to 63 lowercase letters, digits, dots, or hyphens; `name` defaults to it.

```python Signature theme={null}
async def create_organization(
    organization: str,
    *,
    name: str | None = None,
) -> OrganizationResponse
```

**Parameters**

organizationrequired · str

nameoptional · str | None · default: `None`

**Returns**

[`OrganizationResponse`](https://docs.valkyrie.vals.ai/reference/sdk/models/account#organization-response)

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).

## `client.account.accept_invitation`

Join an organization that invited you.

```python Signature theme={null}
async def accept_invitation(organization: str) -> None
```

**Parameters**

organizationrequired · str

**Returns**

None

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).

## `client.account.decline_invitation`

Decline an invitation to an organization.

```python Signature theme={null}
async def decline_invitation(organization: str) -> None
```

**Parameters**

organizationrequired · str

**Returns**

None

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).

## `client.account.members`

List the current organization's members and pending invitations.

```python Signature theme={null}
async def members() -> MembersResponse
```

**Returns**

[`MembersResponse`](https://docs.valkyrie.vals.ai/reference/sdk/models/account#members-response)

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).

## `client.account.invite`

Invite someone to the current organization. Only admins can invite.

```python Signature theme={null}
async def invite(email: str) -> InviteResponse
```

**Parameters**

emailrequired · str

**Returns**

[`InviteResponse`](https://docs.valkyrie.vals.ai/reference/sdk/models/account#invite-response)

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).

## `client.account.remove_member`

Remove someone from the current organization, or cancel their invitation. Only admins can remove.

```python Signature theme={null}
async def remove_member(email: str) -> None
```

**Parameters**

emailrequired · str

**Returns**

None

For examples, see the [Python SDK guide](https://docs.valkyrie.vals.ai/sdk/resources.md).


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