Creating API Keys

Request

HTTP/1.1 POST /accounts/:role/:id/apiKeys
Authorization: Bearer <bearer token>

Path Parameters

  • role: locationProviders / retailers
  • id: location provider ID / retailer ID

Response

HTTP/1.1 201 CREATED
{
  "id": "4GWOS9FMWAW886O2AP9JVKXBH",
  "secret": "zikp6xAwZhrWNac4JpdpVEoCi6XDxNyXRMIKcpd0pPs"
}

Failure

Missing, invalid or expired token:

HTTP/1.1 401 UNAUTHORIZED

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Invalid role:

HTTP/1.1 404 NOT FOUND

Inconsistent data (Stormpath groups / Users):

HTTP/1.1 409 CONFLICT

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""