Working with Users

The OAuth API makes it easy to make authenticated API calls to providers that require OAuth. It does this by offering the developer a simple token called a SmartKey for every user, and associates that SmartKey with the tokens granted by each service the user authorize with the app (such as Twitter, Salesforce, or Salesforce Chatter).

List all users

GET https://{appname}-api.apigee.com/v1/users.json

Note: requires basic authentication, available only to the developer/admin

Parameters

Template Parameters

See an example in the API Console:

GET https://{appname}-api.apigee.com/v1/users.json

Create a user

POST https://{appname}-api.apigee.com/v1/users.json

Note: this is a public resource, requiring no authentication

Parameters

Template Parameters
Form Encoded Parameters

See an example in the API Console:

POST https://{appname}-api.apigee.com/v1/users.json

Get user info

GET https://{appname}-api.apigee.com/v1/users/{username}.json

Note: requires basic authentication. Authenticating as a user gives access only to that user's information. The developer/admin has access to all records.

Parameters

Template Parameters

See an example in the API Console:

GET https://{appname}-api.apigee.com/v1/users/{username}.json

Update a user

PUT https://{appname}-api.apigee.com/v1/users.json

Note: requires basic authentication

Parameters

Template Parameters
Form Encoded Parameters

See an example in the API Console:

https://{appname}-api.apigee.com/v1/users/{username}.json

Delete user

DELETE https://{appname}-api.apigee.com/v1/users/{username}.json

Note: requires basic authentication. Authenticating as a user gives access only to that user's information. The developer/admin has access to all records.

Parameters

Template Parameters

See an example in the API Console:

DELETE https://{appname}-api.apigee.com/v1/users/{username}.json