API Documentation

Introduction

The LifeCap API allows you to programmatically access and manage digital legacies. Our RESTful API provides comprehensive access to stories, memories, and media management.

Authentication

All API requests must be authenticated using Bearer token authentication. To obtain an API token, visit your account settings page.

Authorization: Bearer your-api-token

Rate Limiting

API requests are limited to:

  • 100 requests per minute for free tier
  • 1000 requests per minute for premium tier
  • Custom limits for enterprise tier

Endpoints

POST /api/v1/stories

Create a new story or memory

Authentication: Bearer Token Required

GET /api/v1/stories

List all stories with pagination

Authentication: Bearer Token Required

GET /api/v1/stories/:id

Get a specific story by ID

Authentication: Bearer Token Required

PUT /api/v1/stories/:id

Update a story

Authentication: Bearer Token Required

DELETE /api/v1/stories/:id

Delete a story

Authentication: Bearer Token Required

Error Handling

The API uses conventional HTTP response codes to indicate the success or failure of requests:

  • 2xx: Success
  • 4xx: Client errors
  • 5xx: Server errors

Support

For API support, please contact our developer team at api@lifecap.com