Clay Icon

Any advice on interfacing with an API that requires 2 steps: Post and...

ยท
ยท

Any advice on interfacing with an API that requires 2 steps: Post and Get? Where the Get is not immediately accessible, requires periodic checks until data is ready.

  • Avatar of Clay Team
    Clay Team
    APP
    ยท
    ยท

    Hey hey! Can you drop the URL for your table here? (if applicable) ๐Ÿซถ Don't worry, only admins will be able to open your table ๐Ÿ˜‰

  • Avatar of Clay Team
    Clay Team
    APP
    ยท
    ยท

    Hey Miles, thanks for reaching out! I'll tag Colin P.ย Maggie W. to help us with more technical insights when available!

  • Avatar of Clay Team
    Clay Team
    APP
    ยท
    ยท

    Also, miles, Could you share the link to your table?

  • Avatar of Maggie W.
    Maggie W.
    ยท
    ยท

    miles could you also link the API documentation you're looking to setup?

  • Avatar of miles
    miles
    ยท
    ยท

    Maggie W. What would solve this (and a lot of unrelated other issues with rate limits, etc. on other APIs) would be the ability to conditionally auto-rerun rows periodically. e.g. rerun every 5 minutes if response contains "rate limit" or does not contain some parameter which would indicate a real success payload.

  • Avatar of miles
    miles
    ยท
    ยท

    Working with lots of other APIs which take some time to deliver results after an initial POST and when we do this programmatically we always have a timer function to rerun the GET until a condition is fulfilled.

  • Avatar of Clay Team
    Clay Team
    APP
    ยท
    ยท

    Ah, appreciate the follow-up, Miles. We don't currently have a way to re-run on a schedule or set a timer to API calls but was brought up for consideration, so hopefully, something along those lines will come very soon. Of course, if Maggie has some ideas of what else could be done, she'll let you know some insights :)