Seed Lists API

Seed Lists API

Get a list of seed lists

Get a list of the basic details of all seed lists available to user’s organization.

URL

GET /ga/api/v2/seed_lists

Request Parameters

This API method does not require any additional parameters.

Response

The response will be a JSON array where each element contains the following keys.

id

integer

The id of the Seed List

name

string

The name of the Seed List

addresses_array

array of strings

The list of addresses

Example Request

Note that the JSON response will not be “pretty formatted” as it is below.

> GET /ga/api/v2/seed_lists HTTP/1.1
> Authorization: Basic MTo1ZTk2NDY1Yzg4M2YzMzA5ZjAxMDVhMmUxMDc2NjMyYjY4N2U2MWQy
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: sendsage-studio.dev
> Accept: */*
>
< HTTP/1.1 200 OK
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: Fri, 01 Jan 1990 00:00:00 GMT
< Content-Type: application/json; charset=utf-8
< X-UA-Compatible: IE=Edge
< Set-Cookie: _session_id=458055a23f26f844e74f8cd7300f6445; path=/; HttpOnly
< X-Request-Id: f6e40d578ed1d9c418cca45e1b7fe532
< X-Runtime: 0.025540
< Connection: close
{
  "error_message" : null,
  "data" : [
    {
      "id" : 1,
      "created_at" : "2013-09-02T17:49:01Z",
      "addresses_array" : ["test@example.com", "test2@example.com"],
      "updated_at" : "2013-09-02T17:49:37Z",
      "name" : "test",
      "organization_id" : 1
    }
  ],
  "error_code" : null,
  "success" : true
}