Ir para o conteúdo

List available data source integrations

{% openapi src="/assets/images/f-7T1Jx6BU3fZ2U5LsImW1.webp" path="/integrations/" method="get" %} rememberizer_openapi.yml

Example Requests

{% tabs %}

curl -X GET \
  https://api.rememberizer.ai/api/v1/integrations/ \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Info

Replace YOUR_JWT_TOKEN with your actual JWT token.

{% endtab %}

{% tab title="JavaScript" %}

const getIntegrations = async () => {
  const response = await fetch('https://api.rememberizer.ai/api/v1/integrations/', {
    method: 'GET',
    headers: {
      'Authorization': 'Bearer YOUR_JWT_TOKEN'
    }
  });

  const data = await response.json();
  console.log(data);
};

getIntegrations();

Info

Replace YOUR_JWT_TOKEN with your actual JWT token.

{% endtab %}

{% tab title="Python" %}

import requests

def get_integrations():
    headers = {
        "Authorization": "Bearer YOUR_JWT_TOKEN"
    }

    response = requests.get(
        "https://api.rememberizer.ai/api/v1/integrations/",
        headers=headers
    )

    data = response.json()
    print(data)

get_integrations()

Info

Replace YOUR_JWT_TOKEN with your actual JWT token.

{% endtab %}

Response Format

{
  "data": [
    {
      "id": 101,
      "integration_type": "google_drive",
      "integration_step": "authorized",
      "source": "user@example.com",
      "document_type": "drive",
      "document_stats": {
        "status": {
          "indexed": 250,
          "indexing": 5,
          "error": 2
        },
        "total_size": 15000000,
        "document_count": 257
      },
      "consent_time": "2023-06-15T10:30:00Z",
      "memory_config": null,
      "token_validity": true
    },
    {
      "id": 102,
      "integration_type": "slack",
      "integration_step": "authorized",
      "source": "workspace-name",
      "document_type": "channel",
      "document_stats": {
        "status": {
          "indexed": 45,
          "indexing": 0,
          "error": 0
        },
        "total_size": 5000000,
        "document_count": 45
      },
      "consent_time": "2023-06-16T14:45:00Z",
      "memory_config": null,
      "token_validity": true
    }
  ],
  "message": "Integrations retrieved successfully",
  "code": "success"
}

This endpoint retrieves a list of all available data source integrations for the current user. The response includes detailed information about each integration, including the integration type, status, and document statistics.