Agents
The Agent Object
Attributes
Agent Attribute
API Endpoints
Create an Agent
Creates a new agent with the given data.
SDK Functions
Ruby
Returns
Returns the Agent
object upon successful creation. It’s recommended to store the returned agent ID in your own system for future reference and operations.
Retrieve an Agent
Retrieves an agent by its internal or external ID.
SDK Functions
Ruby
Returns
Returns the up-to-date Agent
object for a valid identifier. Raises an error if get parameters are invalid (e.g. specifying an invalid internal agent ID)
List all Agents
Retrieves all agents associated with your organization.
Ruby
Returns
Returns the up-to-date list of Agent
objects.
Update an Agent
Updates an agent’s information by its internal ID.
SDK Functions
Ruby
Returns
Returns the updated Agent
if the update succeeded. Raises an error if update parameters are invalid (e.g. specifying an invalid agent ID)
Delete an Agent
Deletes an agent by its internal ID.
SDK Functions
ruby
Returns
Returns the deleted Agent
object on success. If the agent ID does not exist, this call raises an error.
Error Handling
The API uses conventional HTTP response codes to indicate the success or failure of requests:
2xx
range indicates success4xx
range indicates an error that failed given the information provided5xx
range indicates an error with Paid’s servers