Oktopost
Leads

Leads

List, get, and delete leads, the people who interact with your social content.

Leads are individuals that interact with your social content. Oktopost collects and stores leads' publicly available information.

List Leads

Retrieve the leads for the account.

GET /v2/lead

By default, this endpoint returns only non-deleted leads with a valid email address. Set all_leads=true to include leads without an email.

Parameters

Prop

Type

See Pagination for shared behavior.

Example Request

curl -X GET "https://api.oktopost.com/v2/lead" \
  -u ACCOUNT_ID:API_KEY

Example Response

{
  "Result": true,
  "Items": [
    {
      "Id": "0ld000000000001",
      "ParentId": null,
      "AccountId": "001000000000001",
      "Type": "person",
      "Email": "john@example.com",
      "Name": "John Doe",
      "FirstName": "John",
      "LastName": "Doe",
      "Photo": null,
      "Phone": null,
      "IsTracked": true,
      "Profiles": [
        {
          "Network": "Instagram",
          "Url": "https:\/\/instagram.com\/..."
        },
        {
          "Network": "Twitter",
          "Url": "https:\/\/twitter.com\/..."
        }
      ],
      "RemoteLeads": [
          {
              "IntegrationID": "014000000000001",
              "RemoteIdentifier": "...",
              "LinkedLeadId": "...",
              "IntegrationType": "eloqua"
          },
          {
              "IntegrationID": "014000000000002",
              "RemoteIdentifier": "...",
              "LinkedLeadId": "...",
              "IntegrationType": "hubspot"
          }
      ]
    }
  ],
  "Total": 1
}

Get Lead

Retrieve a single lead by ID.

GET /v2/lead/:leadId

Parameters

Prop

Type

Example Request

curl -X GET "https://api.oktopost.com/v2/lead/0ld000000000001" \
  -u ACCOUNT_ID:API_KEY

Example Response

{
  "Result": true,
  "Lead": {
      "Id": "0ld000000000001",
      "ParentId": null,
      "AccountId": "001000000000001",
      "Type": "person",
      "Email": "john@example.com",
      "Name": "John Doe",
      "FirstName": "John",
      "LastName": "Doe",
      "Photo": null,
      "Phone": null,
      "IsTracked": true,
      "Profiles": [
        {
          "Network": "Instagram",
          "Url": "https:\/\/instagram.com\/..."
        },
        {
          "Network": "Twitter",
          "Url": "https:\/\/twitter.com\/..."
        }
      ],
      "RemoteLeads": [
          {
              "IntegrationID": "014000000000001",
              "RemoteIdentifier": "...",
              "LinkedLeadId": "...",
              "IntegrationType": "eloqua"
          },
          {
              "IntegrationID": "014000000000002",
              "RemoteIdentifier": "...",
              "LinkedLeadId": "...",
              "IntegrationType": "hubspot"
          }
      ]
    }
}

Delete Lead

Delete a lead.

DELETE /v2/lead/:leadId

Parameters

Prop

Type

Example Request

curl -X DELETE "https://api.oktopost.com/v2/lead/0ld000000000001" \
  -u ACCOUNT_ID:API_KEY