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

# Id vs SnowflakeId

> Understanding the usage of these two ID types

## Id

The `id` is a `number` type typically used as a primary key and a foreign key in other tables.

Use `id` as the default identifier, unless the query parameter explicitly requires a `SnowflakeId`.

## SnowflakeId

The `snowflakeId` is a `string` type, derived from a BigInt. It should be used exclusively as a slug for specific post URLs.

### Example Post URL

`/username/snowflakeId`

This is why GET Post API uses `username` & `snowflakeId`:

<Card title="GET Post API" icon="message" href="/post/get">
  Get post by username and snowflakeId
</Card>
