• Resolved Anonymous User 20702716

    (@anonymized-20702716)


    I tried your API to create tickets programmatically and it seems to work so far with a random test ticket, thank you for providing this opportunity!

    I am not very experienced in API authentication/authorization and I have a general question, hopefully not too dumb:

    Would you recommend to have ONE specialized user for doing only this task on behalf of all users with ONE token from this user in my custom code?

    Or would it be better to somehow generate a token, also by code, for every user everytime the process of ticket creation via API is triggered?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Milind Ighe

    (@miliighe)

    Hello @lenaccp,

    Thanks for contacting us. I hope you are doing well.

    There is no need to seperate authentication for each user. Please follow the below steps:

    • Visit this link and install either JWT auth plugin or JWT authentication for Rest APIs plugin.
    • You can find the steps for authorization on the plugin’s description page to generate the authorization key.
    • Now pass that key as a bearer token in the header of your API call.

    I hope this will help you. Please feel free to get back to us if you need any other assistance.

    Thank you.

    Thread Starter Anonymous User 20702716

    (@anonymized-20702716)

    Thank you, that helps a lot!

    Do I need to code some refreshing routine for the token?

    Plugin Support Milind Ighe

    (@miliighe)

    Hello @lenaccp,

    Thanks fo getting back.

    There is no need to refresh the tocken. It will remain valid.

    Thank you.

    Thread Starter Anonymous User 20702716

    (@anonymized-20702716)

    Thank you again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Creating Tickets with API’ is closed to new replies.