Der API-Schlüssel funktioniert nicht

  • Frank_Gutknecht
    Gefragt am 19. Februar 2025 um 08:49

    Hallo Zusammen,


    ich versuche gerade per API auf meine Submissions zuzugreifen. Mit dem API-Key "Jotform-codesphere-airtable". Dieser hat vollzugriff auf alles.

    Dabei erhalte ich folgende Fehlermeldung:
    Invoke-RestMethod : {"detail":"Fehler bei der Verarbeitung des Webhooks: 500: Fehler beim Abrufen der Jotform Submission: 401 - {\"responseCode\":401,\"message\":\"You're not 

    authorized to use (\\/submission-id) \",\"content\":\"\",\"duration\":\"37.74ms\",\"info\":\"https:\\/\\/api.jotform.com\\/docs#submission-id\"}"}

    In Zeile:1 Zeichen:1

    Ich rufe die API über die EU-Api auf:

    url = f"https://eu-api.jotform.com/submission/{submission_id}?apiKey={JOTFORM_API_KEY}"

    Was mache ich falsch, bzw. was muss ich beachten?

    Danke und viele Grüße
    Christian

    PS: Wie erhalte ich eine Liste aller Namen all meiner Felder einer Forms um diese via API ansprechen zu können?

  • Jovito Jotform Support
    Geantwortet am 19. Februar 2025 um 11:32

    Hi Frank,

    Thanks for reaching out to Jotform Support. Our German Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in German, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, can you try creating a new API key and check if this works on your account? We have a guide on How to Create Jotform API Keys that you can check. Once done, test this new API key on your form and check if this works.

    As to your other concern, can you explain a bit more about the fields you are referring to, so I can get a better idea of what's happening?

    Once we hear back from you, we'll be able to help you with this.

Ihre Antwort