> For the complete documentation index, see [llms.txt](https://ryan-44.gitbook.io/portrait/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryan-44.gitbook.io/portrait/portrait-sdk/collective-portraits/read/getvaliduntil.md).

# getValidUntil()

```typescript
 /**
   * Get the valid until time of the Collective Portrait.
   *
   * @remarks
   * The valid until time is the time at which the Collective Portrait will expire.
   * If the user does not renew their Collective Portrait before the valid until time + grace period, the Collective Portrait will be put up for auction.
   *
   * @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to get the valid until time for.
   * @returns {number} - The valid until time of the Collective Portrait.
   * @beta
   * @async
   */
  getValidUntil(identity: CollectivePortraitName | number): number {
    const id =
      typeof identity !== 'number' ? this.getTokenIdByName(identity) : identity;
    return this.portrait.portraitCollectiveContract.getValidUntil(id);
  }
```
