Receive a list of all your company's betas.

Rate Limit — 90 requests per 15-minute interval

Request

curl https://api.prefinery.com/api/v2/betas.json?api_key=secret
      

Response

HTTP/1.1 200 OK

[
  {
    "id": 1,
    "name": "Prefinery",
    "homepage_url": "https://www.prefinery.com",
    "testers_count": 13405,
    "impressions_count": 120652,
    "share_clicks_count": 23768,
    "share_signups_count": 12809,
    "imported_testers_count": 0,
    "applied_testers_count": 4032,
    "invited_testers_count": 5875,
    "active_testers_count": 3498,
    "rejected_testers_count": 0,
    "created_at": "2009-02-03T18:27:41-06:00",
    "updated_at": "2012-08-08T10:42:04-05:00"
  }
]
      

Request

curl https://api.prefinery.com/api/v2/betas.xml?api_key=secret
      

Response

HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8"?>
<betas type="array">
  <beta>
    <id type="integer">1</id>
    <name>Prefinery</name>
    <homepage-url>https://www.prefinery.com</homepage-url>
    <testers-count type="integer">13405</testers-count>
    <impressions-count type="integer">120652</impressions-count>
    <share-clicks-count type="integer">23768</share-clicks-count>
    <share-signups-count type="integer">12809</share-signups-count>
    <imported-testers-count type="integer">0</imported-testers-count>
    <applied-testers-count type="integer">4032</applied-testers-count>
    <invited-testers-count type="integer">5875</invited-testers-count>
    <active-testers-count type="integer">3498</active-testers-count>
    <rejected-testers-count type="integer">0</rejected-testers-count>
    <created-at type="datetime">2012-09-11T18:38:40-05:00</created-at>
    <updated-at type="datetime">2012-10-22T11:30:56-05:00</updated-at>
  </beta>
</betas>
      

Get a single beta by its ID.

Rate Limit — 90 requests per 15-minute interval

Request

curl https://api.prefinery.com/api/v2/betas/1.json?api_key=secret
      

Response

HTTP/1.1 200 OK

{
  "id": 1,
  "name": "Prefinery",
  "homepage_url": "https://www.prefinery.com",
  "testers_count": 13405,
  "impressions_count": 120652,
  "share_clicks_count": 23768,
  "share_signups_count": 12809,
  "imported_testers_count": 0,
  "applied_testers_count": 4032,
  "invited_testers_count": 5875,
  "active_testers_count": 3498,
  "rejected_testers_count": 0,
  "created_at": "2009-02-03T18:27:41-06:00",
  "updated_at": "2012-08-08T10:42:04-05:00"
}
      

Request

curl https://api.prefinery.com/api/v2/betas/1.xml?api_key=secret
      

Response

      HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8"?>
<beta>
  <id type="integer">1</id>
  <name>Prefinery</name>
  <homepage-url>https://www.prefinery.com</homepage-url>
  <testers-count type="integer">13405</testers-count>
  <impressions-count type="integer">120652</impressions-count>
  <share-clicks-count type="integer">23768</share-clicks-count>
  <share-signups-count type="integer">12809</share-signups-count>
  <imported-testers-count type="integer">0</imported-testers-count>
  <applied-testers-count type="integer">4032</applied-testers-count>
  <invited-testers-count type="integer">5875</invited-testers-count>
  <active-testers-count type="integer">3498</active-testers-count>
  <rejected-testers-count type="integer">0</rejected-testers-count>
  <created-at type="datetime">2012-09-11T18:38:40-05:00</created-at>
  <updated-at type="datetime">2012-10-22T11:30:56-05:00</updated-at>
</beta>
      

Delete a single beta by its ID.

Request

curl -X DELETE https://api.prefinery.com/api/v2/betas/1.json?api_key=secret
      

Response

HTTP/1.1 200 OK
      

Request

curl -X DELETE https://api.prefinery.com/api/v2/betas/1.xml?api_key=secret
      

Response

HTTP/1.1 200 OK
      

Errors

Code Description
2201 A general error has occurred.
2204 Unable to delete beta.