How to Authenticate with the VerseDB API
Creating Your API Token
To use authenticated endpoints, you'll need an API token tied to your VerseDB account.
- Go to https://versedb.com/user/api-tokens
- Enter a name for your token.
- Select the permissions you need (e.g.,
read:self
,lists:collection
,lists:pullist
). - Click Create.
- Copy and store your token β you wonβt be able to view it again.
Permission Types
When creating a token, you can select permissions based on what you need:
read:public
β Public data (required for most requests)read:self
β Your user profilelists:follow
β Follow/unfollow titleslists:collection
β View/edit your collectionlists:wishlist
β View/edit your wishlistlists:pulllist
β Manage your pull listlists:read
β View your read status
Using the Token
All authenticated requests require the token to be passed in the Authorization header:
Authorization: Bearer your-api-token
Example Request
GET /api/user/collections
Authorization: Bearer sk_test_123456789abcdef
Example Response
[
{
"id": 1,
"name": "Main Collection",
"items": [...]
}
]
API Security Tips
- Never expose your token publicly
- Donβt commit it to version control (GitHub, etc.)
- Rotate your token periodically
- Delete unused tokens right from the dashboard
Was this article helpful?
Please login to provide feedback