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

Rotate API Key

POST
/api-keys/:id/rotate

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Request Body

application/json

id*string
Formatuuid

Response Body

application/json

curl -X POST "https://samva.app/api/v1/api-keys/:id/rotate" \  -H "Content-Type: application/json" \  -d '{    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  }'
{
  "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"
}

Remove API Key

Previous Page

Update API Key

Next Page

curl -X POST "https://samva.app/api/v1/api-keys/:id/rotate" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  }'