# Is it possible to trigger workflows by V1 API token?

**URL:** <https://discuss.circleci.com/t/is-it-possible-to-trigger-workflows-by-v1-api-token/41598>\
**Category:** API\
**Tags:** api, circle-yml\
**Created:** [October 21, 2021, 5:05am UTC](https://discuss.circleci.com/t/is-it-possible-to-trigger-workflows-by-v1-api-token/41598 "2021-10-21T05:05:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![svipul](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@svipul](https://discuss.circleci.com/u/svipul)\
**Post date:** [October 21, 2021, 5:05am UTC](https://discuss.circleci.com/t/is-it-possible-to-trigger-workflows-by-v1-api-token/41598/1 "2021-10-21T05:05:45Z")

</div>

[https://cci.xxx.com/api/v1.1/project/gh/myname/circleci-helloworld/tree/master?circle-token=f0a14b5a94f2c685abxxxxxxxxxxxxxxxxxx](https://cci.xxx.com/api/v1.1/project/gh/myname/circleci-helloworld/tree/master?circle-token=f0a14b5a94f2c685abxxxxxxxxxxxxxxxxxx)

```auto
workflows:
  version: 2
  build_and_test:
    jobs:
      - build
      - test:
          requires:
            - build

jobs:
  build:
    docker: 
      - image: circleci/node:4.8.2 
    steps:
      - checkout 
      - run: echo "hello world" 
  test:
    docker: 
      - image: circleci/node:4.8.2
    steps:
      - checkout 
      - run: echo "hello 2"

```

I was able to trigger a CircleCI project by V1 API token with the above request. However, only the “build” job is run by CircleCI, the “test” job was not run.

[https://circleci.com/docs/2.0/api-job-trigger/](https://circleci.com/docs/2.0/api-job-trigger/)  
But in the above document it says

> It is possible to trigger workflows with the CircleCI API: a singular workflow can be re-run, or you may trigger a pipeline which will run its subsequent workflows

What am I missing here?

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [November 1, 2021, 11:36pm UTC](https://discuss.circleci.com/t/is-it-possible-to-trigger-workflows-by-v1-api-token/41598/2 "2021-11-01T23:36:59Z")

</div>

Hi @svipul!

The v1.1 APIs are from a time when our domain model revolved around jobs. They cannot be used to interact with workflows are pipelines.

If you want to use workflows and pipelines, you have to use the v2 APIs. We **strongly** advise against using the v1.1 APIs, as they will eventually be deprecated.
