Full API and Integration Documentation

Users

Users are owned by an organization, and have access to all pages and elements owned by the pages under a given organization.

List users
ENDPOINT
  GET /organizations/[organization_id]/users.json

SAMPLE CALL
  curl https://api.statuspage.io/v1/organizations/5vrl5smv5kdn/users.json \
    -H "Authorization: OAuth 2a7b9d4aac30956d537ac76850f4d78de30994703680056cc103862d53cf8074"

RESPONSE CODES
  200 - Successful call

SAMPLE RESPONSE
  [
    {
      "created_at": "2013-07-06T14:54:47Z",
      "email": "yosemite@acme.org",
      "first_name": "Yosemite",
      "id": "6pkccczny40d",
      "last_name": "Sam",
      "organization_id": "5vrl5smv5kdn",
      "updated_at": "2013-07-06T14:54:47Z"
    },
    {
      "created_at": "2013-07-02T20:32:05Z",
      "email": "wiley@acme.org",
      "first_name": "Wiley",
      "id": "h1dqmj7gvv39",
      "last_name": "Coyote",
      "organization_id": "5vrl5smv5kdn",
      "updated_at": "2013-07-02T20:32:05Z"
    }
  ]
Create a user
ENDPOINT
  POST /organizations/[organization_id]/users.json

REQUIRED PARAMS
  user[email] - email of the user account
  user[password] - password of the user account
  user[first_name] - first name of the user
  user[last_name] - last name of the user


SAMPLE CALL
  curl https://api.statuspage.io/v1/organizations/5vrl5smv5kdn/users.json \
    -X POST \
    -d "user[email]=yosemite@acme.org" \
    -d "user[first_name]=Yosemite" \
    -d "user[last_name]=Sam" \
    -d "user[password]=wabbit" \
    -H "Authorization: OAuth 2a7b9d4aac30956d537ac76850f4d78de30994703680056cc103862d53cf8074"


RESPONSE CODES
  201 - Successfully created
  422 - Validation failed, check input params

SAMPLE RESPONSE
  {
    "created_at": "2013-07-06T14:54:47Z",
    "email": "yosemite@acme.org",
    "first_name": "Yosemite",
    "id": "6pkccczny40d",
    "last_name": "Sam",
    "organization_id": "5vrl5smv5kdn",
    "updated_at": "2013-07-06T14:54:47Z"
  }
Delete a user
ENDPOINT
  DELETE /organizations/[organization_id]/users/[user_id].json


SAMPLE CALL
  curl https://api.statuspage.io/v1/organizations/5vrl5smv5kdn/users/6pkccczny40d.json \
    -X DELETE \
    -H "Authorization: OAuth 2a7b9d4aac30956d537ac76850f4d78de30994703680056cc103862d53cf8074"


RESPONSE CODES
  200 - Successfully deleted

SAMPLE RESPONSE
  {
    "created_at": "2013-07-06T14:54:47Z",
    "email": "yosemite@acme.org",
    "first_name": "Yosemite",
    "id": "6pkccczny40d",
    "last_name": "Sam",
    "organization_id": "5vrl5smv5kdn",
    "updated_at": "2013-07-06T14:54:47Z"
  }