Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Is there a List of OST APIs?

Is there more API values available then the User profile? I would also like the Organization profile.

Also, is there a way to add Organization to the top of the Ticket Detail Form? Next to the User Information Fields.
I know it can be added by the Help Topic, but this is not what I want. I do not understand why Company/Organization  info needs to be separated so much.

$data = array(
    'name'      =>      'John Doe',  // from name aka User/Client Name
    'email'     =>      '',  // from email aka User/Client Email
'phone' => '1234567890',  // phone number aka User/Client Phone Number
    'subject'   =>      'Test API message',  // test subject, aka Issue Summary
    'message'   =>      'This is a test of the osTicket API',  // test ticket body, aka Issue Details.
    'ip'        =>      $_SERVER['REMOTE_ADDR'], // Should be IP address of the machine thats trying to open the ticket.
'topicId'   =>      '1'; // the help Topic that you want to use for the ticket 
//'Agency'  => '58', //this is an example of a custom list entry. This should be the number of the entry.
//'Site' => 'Bermuda'; // this is an example of a custom text field.  You can push anything into here you want.
    'attachments' => array()


  • edited August 2017
    This does not appear to be a Suggestion or Feedback, moving thread to General Discussion.

    Please see:

  • Im on v1.10.
    I understand now that any Newly Added Fields in Contacts will be added to "user__cdata__xxxx" table.
    To view a new column field will require customizing for the Tickets Tab

    I do not know how correct this is, but it seems to work. 3 steps.

    For example, to add a Company field I did the following: in

    Add a new sort/column routine:
    around line76
            'Company' => array(
                'width' => '8.4%',
                'heading' => __('Company'),
                'sort_col'  => 'user__cdata__company',

    around line382
    add the company value to array,

    around line608
    <td class="nohover" align="left">
    <?php echo $T['user__cdata__company']; ?></td>
  • The API is able to create custom fields in conjunction with adding fields to Contact Information form.
    Custom Forms and Fields

    Fields added to both the common ticket and common client forms can accept data via the API as well

Sign In or Register to comment.