S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

API Reference

Email Management

Conversation Management

Configuration

Create API KeyGet API KeyGet API Key ActivityGet API Key StatsList API KeysRemove API KeyRotate API KeyUpdate API Key

Analytics & Operations

OpenAPI Specification
API ReferenceApiKeys

Create API Key

POST
/api-keys

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Request Body

application/json

name*string
Length1 <= length <= 100
description?string
expiresAt?string
Formatdate-time
permissions?

Response Body

application/json

curl -X POST "https://samva.app/api/v1/api-keys" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "id": "string",
  "name": "string",
  "key": "string",
  "description": "string",
  "organizationId": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "expiresAt": "2019-08-24T14:15:22Z",
  "lastUsedAt": "2019-08-24T14:15:22Z",
  "isActive": true,
  "permissions": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  },
  "roleName": "string"
}

Update Webhook Endpoint

Previous Page

Get API Key

Next Page

curl -X POST "https://samva.app/api/v1/api-keys" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'